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:
softwarefactory-project-zuul[bot]
2019-08-26 19:10:52 +00:00
committed by GitHub

View File

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