[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:
parent
db5f22d34e
commit
ab6ab4e842
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user