Skip to content

Commit

Permalink
fixed syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
masterof0 committed May 11, 2015
1 parent aa6580c commit 95bf31b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/aws.py
Expand Up @@ -11,12 +11,12 @@ def awsDB():

def getPass(access, secret, i, awsDir):
baseName = i.tags['Name'].split(':')[0]
os.chdir(awsDir())
os.chdir(awsDir)
key = ''
for file in glob.glob("*.pem"):
if file.startswith(baseName):
key = str(file)
cmd = 'ec2-get-password --region us-west-1 -O ' + access + ' -W ' + secret + ' ' + i.id + ' -k ' + awsDir() + key
cmd = 'ec2-get-password --region us-west-1 -O ' + access + ' -W ' + secret + ' ' + i.id + ' -k ' + awsDir + key
return os.popen(cmd).read().strip()

def delKey(pem, admin):
Expand Down

0 comments on commit 95bf31b

Please sign in to comment.