mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 03:47:36 -02:30
make --help work properly for custom commands
see: https://github.com/ansible/awx/issues/4559
This commit is contained in:
@@ -152,6 +152,9 @@ class CLI(object):
|
||||
# control resources are special endpoints that you can only
|
||||
# do an HTTP GET to, and which return plain JSON metadata
|
||||
# examples are `/api/v2/ping/`, `/api/v2/config/`, etc...
|
||||
if self.help:
|
||||
self.subparsers[self.resource].print_help()
|
||||
raise SystemExit()
|
||||
self.method = 'get'
|
||||
response = getattr(resource, self.method)()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user