mirror of
https://github.com/ansible/awx.git
synced 2026-02-02 01:58:09 -03:30
added collection name to module.deprecate() calls; fixed pep8 linting issues
This commit is contained in:
committed by
Seth Foster
parent
378a0711c2
commit
25ca8d22d6
@@ -163,7 +163,7 @@ class ControllerAPIModule(ControllerModule):
|
||||
if len(sample['json']['results']) > 1:
|
||||
sample['json']['results'] = sample['json']['results'][:2] + ['...more results snipped...']
|
||||
url = self.build_url(endpoint, query_params)
|
||||
display_endpoint = url.geturl()[len(self.host) :] # truncate to not include the base URL
|
||||
display_endpoint = url.geturl()[len(self.host):] # truncate to not include the base URL
|
||||
self.fail_json(
|
||||
msg="Request to {0} returned {1} items, expected 1".format(display_endpoint, response['json']['count']),
|
||||
query=query_params,
|
||||
|
||||
Reference in New Issue
Block a user