From f9230d9879ab08cfb90b8befc97ae7222af1be16 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Mon, 26 Aug 2019 12:25:18 -0400 Subject: [PATCH] cli: remove --id flag from awx list see: https://github.com/ansible/awx/issues/4563 --- awxkit/awxkit/cli/options.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/awxkit/awxkit/cli/options.py b/awxkit/awxkit/cli/options.py index 88e1ef06b2..4e9f0d098d 100644 --- a/awxkit/awxkit/cli/options.py +++ b/awxkit/awxkit/cli/options.py @@ -72,6 +72,10 @@ class ResourceOptionsParser(object): help_text = param.get('help_text', '') if method == 'list': + if k == 'id': + # don't allow `awx list` to filter on `--id` + # it's weird, and that's what awx get is for + continue help_text = 'only list {} with the specified {}'.format( self.resource, k