Merge pull request #13174 from jbradberry/fix-3.11-awxkit

Avoid adding the 'config' subparser twice
This commit is contained in:
Jeff Bradberry 2022-11-09 13:37:03 -05:00 committed by GitHub
commit 86b0a3d4f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,8 +197,10 @@ def parse_resource(client, skip_deprecated=False):
if hasattr(client, 'v2'):
for k in client.v2.json.keys():
if k in ('dashboard',):
# the Dashboard API is deprecated and not supported
if k in ('dashboard', 'config'):
# - the Dashboard API is deprecated and not supported
# - the Config command is already dealt with by the
# CustomCommand section above
continue
# argparse aliases are *only* supported in Python3 (not 2.7)