cli: remove --id flag from awx <resource> list

see: https://github.com/ansible/awx/issues/4563
This commit is contained in:
Ryan Petrello 2019-08-26 12:25:18 -04:00
parent e19035079e
commit f9230d9879
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

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