mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 14:21:26 -07:00
Compare arg+aliases between docs and argument_spec (#34809)
* compare arg+aliases between docs and argument_spec * Add some special handling for the network modules provider options that also appear in the top level arg spec * Fix error code for bigip_hostname * Address merge conflicts due to changes in f5 modules * Update validate-modules ignore based off a clean execution * Address merge conflicts * Address renamed module * Address recent changes to modules * Add ignore for ucs_ip_pool * Update aci modules to get more reliable documentation comparison, but not mutating the module_utils aci_argument_spec * Update ignore.txt after recent aci updates * Add extra guard to ensure we handle provider special only for network modules * Address additional changes to modules
This commit is contained in:
parent
8d733dbdf0
commit
a352d43824
52 changed files with 843 additions and 72 deletions
|
@ -77,8 +77,8 @@ def get_argument_spec(filename):
|
|||
try:
|
||||
args, kwargs = module_mock.call_args
|
||||
try:
|
||||
return kwargs['argument_spec']
|
||||
return kwargs['argument_spec'], args, kwargs
|
||||
except KeyError:
|
||||
return args[0]
|
||||
return args[0], args, kwargs
|
||||
except TypeError:
|
||||
return {}
|
||||
return {}, (), {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue