commit | d14dec2704ffeec96ad6cbb3a7c82c731e846766 | [log] [tgz] |
---|---|---|
author | Sapan Bhatia <gwsapan@gmail.com> | Mon Sep 08 03:26:35 2014 -0400 |
committer | Sapan Bhatia <gwsapan@gmail.com> | Mon Sep 08 03:26:35 2014 -0400 |
tree | d2e500ad0ef7a937a538d0529826d6d9cdd1795e | |
parent | 8325e8e4865acb5036cb915e35a136ef2b4e2893 [diff] |
Run aws commands with custom credentials
diff --git a/planetstack/ec2_observer/awslib.py b/planetstack/ec2_observer/awslib.py index 5df0768..ca708ff 100644 --- a/planetstack/ec2_observer/awslib.py +++ b/planetstack/ec2_observer/awslib.py
@@ -4,8 +4,8 @@ class AwsException(Exception): pass -def aws_run(cmd): - cmd = 'aws %s'%cmd +def aws_run(cmd,env=''): + cmd = '%s aws %s'%(env,cmd) pipe = os.popen(cmd) output_str = pipe.read()