diff --git a/awxkit/awxkit/cli/resource.py b/awxkit/awxkit/cli/resource.py index 152b9a1cbb..a162c36fc8 100644 --- a/awxkit/awxkit/cli/resource.py +++ b/awxkit/awxkit/cli/resource.py @@ -176,8 +176,12 @@ def parse_resource(client, skip_deprecated=False): ] } _filter = 'key, value' + try: + connection = client.root.connection + except AttributeError: + connection = None formatted = format_response( - Page.from_json(response, connection=client.root.connection), + Page.from_json(response, connection=connection), fmt=client.get_config('format'), filter=_filter )