mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Merge pull request #4592 from ryanpetrello/fix-4563
cli: remove --id flag from awx <resource> list
Reviewed-by: Elijah DeLee <kdelee@redhat.com>
https://github.com/kdelee
This commit is contained in:
commit
fbf19de993
@ -72,6 +72,10 @@ class ResourceOptionsParser(object):
|
||||
help_text = param.get('help_text', '')
|
||||
|
||||
if method == 'list':
|
||||
if k == 'id':
|
||||
# don't allow `awx <resource> list` to filter on `--id`
|
||||
# it's weird, and that's what awx <resource> get is for
|
||||
continue
|
||||
help_text = 'only list {} with the specified {}'.format(
|
||||
self.resource,
|
||||
k
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user