mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 08:48:46 -03:30
fix lint and update test
This commit is contained in:
@@ -29,7 +29,7 @@ tags:
|
|||||||
- awx
|
- awx
|
||||||
- ansible
|
- ansible
|
||||||
- automation
|
- automation
|
||||||
version: 17.0.2-devel
|
version: 0.0.1-devel
|
||||||
build_ignore:
|
build_ignore:
|
||||||
- tools
|
- tools
|
||||||
- setup.cfg
|
- setup.cfg
|
||||||
|
|||||||
@@ -410,7 +410,7 @@ class TowerAPIModule(TowerModule):
|
|||||||
else:
|
else:
|
||||||
self.fail_json(msg="Failed to associate item {0}".format(response['json'].get('detail', response['json'])))
|
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:
|
if existing_item is not None:
|
||||||
self.warn(msg="A {0} with the name {1} already exists.".format(item_type, new_item_name))
|
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}}"}
|
query: {"id": "{{result.id}}"}
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
- name: Wait for 2nd job max 120s
|
||||||
|
tower_job_wait:
|
||||||
|
job_id: "{{result.id}}"
|
||||||
|
timeout: 120
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- '{"foo": "bar"} | to_json in result.results[0].extra_vars'
|
- '{"foo": "bar"} | to_json in result.results[0].extra_vars'
|
||||||
|
|||||||
Reference in New Issue
Block a user