Merge pull request #6469 from ryanpetrello/cli-config-wooops

fix a bug that broke `awx config`

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2020-03-27 21:59:16 +00:00
committed by GitHub

View File

@@ -176,8 +176,12 @@ def parse_resource(client, skip_deprecated=False):
] ]
} }
_filter = 'key, value' _filter = 'key, value'
try:
connection = client.root.connection
except AttributeError:
connection = None
formatted = format_response( formatted = format_response(
Page.from_json(response, connection=client.root.connection), Page.from_json(response, connection=connection),
fmt=client.get_config('format'), fmt=client.get_config('format'),
filter=_filter filter=_filter
) )