mirror of
https://github.com/ansible/awx.git
synced 2026-02-21 13:10:11 -03:30
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:
@@ -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
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user