diff --git a/awx_collection/plugins/modules/export.py b/awx_collection/plugins/modules/export.py index 89ad9f8ba4c3..09c75cd92362 100644 --- a/awx_collection/plugins/modules/export.py +++ b/awx_collection/plugins/modules/export.py @@ -92,7 +92,7 @@ - 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 9279e44a7359..79456bc325af 100644 --- a/awxkit/awxkit/api/pages/api.py +++ b/awxkit/awxkit/api/pages/api.py @@ -252,7 +252,8 @@ def _import_list(self, endpoint, assets): _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