update logic

This commit is contained in:
sean-m-ssullivan
2021-03-09 18:40:15 -06:00
parent 55855e9e63
commit 857a5718e5
7 changed files with 11 additions and 6 deletions

View File

@@ -411,7 +411,7 @@ def main():
credential = module.copy_item( credential = module.copy_item(
credential, copy_from, name, credential, copy_from, name,
endpoint='credentials', item_type='credential', endpoint='credentials', item_type='credential',
copy_lookup_data=copy_lookup_data copy_lookup_data=copy_lookup_data,
) )
if state == 'absent': if state == 'absent':

View File

@@ -139,6 +139,7 @@ def main():
inventory = module.copy_item( inventory = module.copy_item(
inventory, copy_from, name, inventory, copy_from, name,
endpoint='inventories', item_type='inventory', endpoint='inventories', item_type='inventory',
copy_lookup_data={},
) )
if state == 'absent': if state == 'absent':

View File

@@ -449,6 +449,7 @@ def main():
existing_item = module.copy_item( existing_item = module.copy_item(
existing_item, copy_from, name, existing_item, copy_from, name,
endpoint='job_templates', item_type='job_template', endpoint='job_templates', item_type='job_template',
copy_lookup_data={},
) )
if state == 'absent': if state == 'absent':

View File

@@ -408,6 +408,7 @@ def main():
existing_item = module.copy_item( existing_item = module.copy_item(
existing_item, copy_from, name, existing_item, copy_from, name,
endpoint='notification_templates', item_type='notification_template', endpoint='notification_templates', item_type='notification_template',
copy_lookup_data={},
) )
if state == 'absent': if state == 'absent':

View File

@@ -300,6 +300,7 @@ def main():
project = module.copy_item( project = module.copy_item(
project, copy_from, name, project, copy_from, name,
endpoint='projects', item_type='project', endpoint='projects', item_type='project',
copy_lookup_data={},
) )
if state == 'absent': if state == 'absent':

View File

@@ -242,6 +242,7 @@ def main():
existing_item = module.copy_item( existing_item = module.copy_item(
existing_item, copy_from, name, existing_item, copy_from, name,
endpoint='workflow_job_templates', item_type='workflow_job_template', endpoint='workflow_job_templates', item_type='workflow_job_template',
copy_lookup_data={},
) )
if state == 'absent': if state == 'absent':

View File

@@ -164,16 +164,16 @@
that: that:
- "result is changed" - "result is changed"
- name: Get the job
tower_job_list:
query: {"id": "{{result.id}}"}
register: result
- name: Wait for 2nd job max 120s - name: Wait for 2nd job max 120s
tower_job_wait: tower_job_wait:
job_id: "{{result.id}}" job_id: "{{result.id}}"
timeout: 120 timeout: 120
- name: Get the job
tower_job_list:
query: {"id": "{{result.id}}"}
register: result
- assert: - assert:
that: that:
- '{"foo": "bar"} | to_json in result.results[0].extra_vars' - '{"foo": "bar"} | to_json in result.results[0].extra_vars'