Merge pull request #7168 from Wilk42/devel

Absent not working for tower_workflow_job_template_node Fix

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2020-05-29 02:23:08 +00:00 committed by GitHub
commit c1ec84d4a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -485,6 +485,8 @@ class TowerModule(AnsibleModule):
item_name = existing_item['name']
elif 'username' in existing_item:
item_name = existing_item['username']
elif 'identifier' in existing_item:
item_name = existing_item['identifier']
else:
self.fail_json(msg="Unable to process delete of {0} due to missing name".format(item_type))