Skip to content

Commit

Permalink
removing passwd and keyname info from run/postrun json
Browse files Browse the repository at this point in the history
  • Loading branch information
SooLee committed Jul 18, 2018
1 parent 0eb4ff0 commit b089ffd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/ec2_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ def create_json(input_dict, jobid):
'dir': value.get('bucket_name'),
'path': value.get('object_key')}

# remove the password and keyname info
if 'password' in pre['config']:
del(pre['config']['password'])
if 'key_name' in pre['config']:
del(pre['config']['key_name'])

# writing to a json file
json_filename = create_json_filename(jobid, json_dir)
try:
Expand Down

0 comments on commit b089ffd

Please sign in to comment.