[fix] flake8

This commit is contained in:
Dominique Quatravaux 2020-10-29 13:14:59 +01:00
parent 3335ea953e
commit 87b97530ff

View File

@ -21,7 +21,7 @@ def deepmerge(a, b):
"""
if isinstance(a, dict) and isinstance(b, dict):
return dict([(k, deepmerge(a.get(k), b.get(k)))
for k in set(a.keys()).union(b.keys())])
for k in set(a.keys()).union(b.keys())])
elif b is None:
return a
else:
@ -150,7 +150,7 @@ class PodManager(object):
labels={
'ansible-awx': settings.INSTALL_UUID,
'ansible-awx-job-id': str(self.task.id)
}))
}))
pod_spec['spec']['containers'][0]['name'] = self.pod_name
return pod_spec