1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 17:55:10 +03:00

fix a bug that broke awx config

see: https://github.com/ansible/tower/issues/4206
This commit is contained in:
Ryan Petrello 2020-03-27 17:07:48 -04:00
parent 5f62426684
commit ea54815e6b
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -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
)