diff --git a/awx_collection/plugins/modules/export.py b/awx_collection/plugins/modules/export.py index 89ad9f8ba4..09c75cd923 100644 --- a/awx_collection/plugins/modules/export.py +++ b/awx_collection/plugins/modules/export.py @@ -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' ''' diff --git a/awxkit/awxkit/api/pages/api.py b/awxkit/awxkit/api/pages/api.py index 9279e44a73..79456bc325 100644 --- a/awxkit/awxkit/api/pages/api.py +++ b/awxkit/awxkit/api/pages/api.py @@ -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