mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 01:47:31 -02: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:
@@ -72,6 +72,10 @@ class ResourceOptionsParser(object):
|
|||||||
help_text = param.get('help_text', '')
|
help_text = param.get('help_text', '')
|
||||||
|
|
||||||
if method == 'list':
|
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(
|
help_text = 'only list {} with the specified {}'.format(
|
||||||
self.resource,
|
self.resource,
|
||||||
k
|
k
|
||||||
|
|||||||
Reference in New Issue
Block a user