[fix] remove json.load of dictionary

Dictionary was already loaded from a dictionary and should
not have been used as input to the json.loads function again.

Change-Id: I1d519d09e4e5e786fd30c23efa7de857a28fd67f
This commit is contained in:
Bryan Strassner 2018-03-23 16:45:37 -05:00
parent db5f22d34e
commit ab6ab4e842

View File

@ -346,8 +346,7 @@ class ArmadaOperator(BaseOperator):
except json.JSONDecodeError as e:
raise AirflowException(e)
status = str(json.loads(validate_site_design_dict).get('status',
'unspecified'))
status = str(validate_site_design_dict.get('status', 'unspecified'))
# Check if site design is valid
logging.info("Armada Site Design valdation status "
"is: {}".format(status))