mirror of
https://github.com/ansible/awx.git
synced 2026-04-07 02:59:21 -02:30
linting
This commit is contained in:
@@ -447,7 +447,7 @@ class TowerAPIModule(TowerModule):
|
|||||||
self.json_output['changed'] = True
|
self.json_output['changed'] = True
|
||||||
item_url = response['json']['url']
|
item_url = response['json']['url']
|
||||||
# 200 is response from approval node creation
|
# 200 is response from approval node creation
|
||||||
elif response['status_code'] == 200 and item_type == 'workflow_job_template_approval_node':
|
elif response['status_code'] == 200 and item_type == 'workflow_job_template_approval_node':
|
||||||
self.json_output['name'] = 'unknown'
|
self.json_output['name'] = 'unknown'
|
||||||
for key in ('name', 'username', 'identifier', 'hostname'):
|
for key in ('name', 'username', 'identifier', 'hostname'):
|
||||||
if key in response['json']:
|
if key in response['json']:
|
||||||
|
|||||||
Reference in New Issue
Block a user