mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
fix lint and update test
This commit is contained in:
parent
701a69b5e5
commit
55855e9e63
@ -29,7 +29,7 @@ tags:
|
||||
- awx
|
||||
- ansible
|
||||
- automation
|
||||
version: 17.0.2-devel
|
||||
version: 0.0.1-devel
|
||||
build_ignore:
|
||||
- tools
|
||||
- setup.cfg
|
||||
|
||||
@ -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))
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user