fix lint and update test

This commit is contained in:
sean-m-ssullivan 2021-03-08 21:56:16 -06:00
parent 701a69b5e5
commit 55855e9e63
3 changed files with 7 additions and 2 deletions

View File

@ -29,7 +29,7 @@ tags:
- awx
- ansible
- automation
version: 17.0.2-devel
version: 0.0.1-devel
build_ignore:
- tools
- setup.cfg

View File

@ -410,7 +410,7 @@ class TowerAPIModule(TowerModule):
else:
self.fail_json(msg="Failed to associate item {0}".format(response['json'].get('detail', response['json'])))
def copy_item(self, existing_item, copy_from_name_or_id, new_item_name, endpoint=None, item_type='unknown', copy_lookup_data={}):
def copy_item(self, existing_item, copy_from_name_or_id, new_item_name, endpoint=None, item_type='unknown', copy_lookup_data=None):
if existing_item is not None:
self.warn(msg="A {0} with the name {1} already exists.".format(item_type, new_item_name))

View File

@ -169,6 +169,11 @@
query: {"id": "{{result.id}}"}
register: result
- name: Wait for 2nd job max 120s
tower_job_wait:
job_id: "{{result.id}}"
timeout: 120
- assert:
that:
- '{"foo": "bar"} | to_json in result.results[0].extra_vars'