mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 03:17:39 -02:30
[fix] flake8
This commit is contained in:
@@ -21,7 +21,7 @@ def deepmerge(a, b):
|
|||||||
"""
|
"""
|
||||||
if isinstance(a, dict) and isinstance(b, dict):
|
if isinstance(a, dict) and isinstance(b, dict):
|
||||||
return dict([(k, deepmerge(a.get(k), b.get(k)))
|
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:
|
elif b is None:
|
||||||
return a
|
return a
|
||||||
else:
|
else:
|
||||||
@@ -150,7 +150,7 @@ class PodManager(object):
|
|||||||
labels={
|
labels={
|
||||||
'ansible-awx': settings.INSTALL_UUID,
|
'ansible-awx': settings.INSTALL_UUID,
|
||||||
'ansible-awx-job-id': str(self.task.id)
|
'ansible-awx-job-id': str(self.task.id)
|
||||||
}))
|
}))
|
||||||
pod_spec['spec']['containers'][0]['name'] = self.pod_name
|
pod_spec['spec']['containers'][0]['name'] = self.pod_name
|
||||||
|
|
||||||
return pod_spec
|
return pod_spec
|
||||||
|
|||||||
Reference in New Issue
Block a user