From b089ffd939705651ec53922c6a06daee1c7f2354 Mon Sep 17 00:00:00 2001 From: SooLee Date: Wed, 18 Jul 2018 13:56:33 -0400 Subject: [PATCH] removing passwd and keyname info from run/postrun json --- core/ec2_utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/ec2_utils.py b/core/ec2_utils.py index 30b6cf40d..c04067dec 100644 --- a/core/ec2_utils.py +++ b/core/ec2_utils.py @@ -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: