Skip to content

Commit

Permalink
fixes indention
Browse files Browse the repository at this point in the history
fixes space indention of the parsing of the credential store
  • Loading branch information
georgestarcher committed Jan 23, 2015
1 parent 2356ede commit 8881cb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions XARF/.vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
set tabstop=4 shiftwidth=4 expandtab
8 changes: 4 additions & 4 deletions credentialsFromSplunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ def getPassword(self, sessionkey):
except Exception, e:
raise Exception, "Could not get %s credentials from splunk. Error: %s" % (self.app, str(e))

for i, c in entities.items():
if (c['realm'] == self.realm and c['username'] == self.username):
self.password = c['clear_password']
return
for i, c in entities.items():
if (c['realm'] == self.realm and c['username'] == self.username):
self.password = c['clear_password']
return

raise Exception, "No credentials have been found"

Expand Down

0 comments on commit 8881cb2

Please sign in to comment.