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

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))