mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
awxkit log which resource failed to import
This commit is contained in:
parent
ac8204427e
commit
1462af61b0
@ -92,7 +92,7 @@ EXAMPLES = '''
|
||||
|
||||
- name: Export a job template named "My Template" and all Credentials
|
||||
export:
|
||||
job_template: "My Template"
|
||||
job_templates: "My Template"
|
||||
credential: 'all'
|
||||
'''
|
||||
|
||||
|
||||
@ -252,7 +252,8 @@ class ApiV2(base.Base):
|
||||
_page = _page.put(post_data)
|
||||
changed = True
|
||||
except (exc.Common, AssertionError) as e:
|
||||
log.error("Object import failed: %s.", e)
|
||||
identifier = asset.get("name", None) or asset.get("username", None) or asset.get("hostname", None)
|
||||
log.error(f"{endpoint} \"{identifier}\": {e}.")
|
||||
log.debug("post_data: %r", post_data)
|
||||
continue
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user