mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 07:43:35 -05:00
awxkit log which resource failed to import
This commit is contained in:
@@ -92,7 +92,7 @@ EXAMPLES = '''
|
|||||||
|
|
||||||
- name: Export a job template named "My Template" and all Credentials
|
- name: Export a job template named "My Template" and all Credentials
|
||||||
export:
|
export:
|
||||||
job_template: "My Template"
|
job_templates: "My Template"
|
||||||
credential: 'all'
|
credential: 'all'
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -252,7 +252,8 @@ class ApiV2(base.Base):
|
|||||||
_page = _page.put(post_data)
|
_page = _page.put(post_data)
|
||||||
changed = True
|
changed = True
|
||||||
except (exc.Common, AssertionError) as e:
|
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)
|
log.debug("post_data: %r", post_data)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user