mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 21:49:27 -02:30
linting
This commit is contained in:
@@ -366,7 +366,7 @@ class TowerAPIModule(TowerModule):
|
|||||||
if auto_exit:
|
if auto_exit:
|
||||||
self.exit_json(**self.json_output)
|
self.exit_json(**self.json_output)
|
||||||
else:
|
else:
|
||||||
return self.json_output #########
|
return self.json_output
|
||||||
else:
|
else:
|
||||||
if 'json' in response and '__all__' in response['json']:
|
if 'json' in response and '__all__' in response['json']:
|
||||||
self.fail_json(msg="Unable to delete {0} {1}: {2}".format(item_type, item_name, response['json']['__all__'][0]))
|
self.fail_json(msg="Unable to delete {0} {1}: {2}".format(item_type, item_name, response['json']['__all__'][0]))
|
||||||
|
|||||||
@@ -325,8 +325,8 @@ def main():
|
|||||||
endpoint=approval_endpoint, item_type='workflow_job_template_approval_node',
|
endpoint=approval_endpoint, item_type='workflow_job_template_approval_node',
|
||||||
associations=association_fields
|
associations=association_fields
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
module.exit_json(**module.json_output)
|
module.exit_json(**module.json_output)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user