mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
parent
d4cedbee20
commit
e801187899
5 changed files with 22 additions and 21 deletions
|
@ -138,7 +138,7 @@ class ACIModule(object):
|
|||
# Handle deprecated method/action parameter
|
||||
if self.params['method']:
|
||||
# Deprecate only if state was a valid option (not for aci_rest)
|
||||
if self.module.argument_spec('state', False):
|
||||
if 'state' in self.module.argument_spec:
|
||||
self.module.deprecate("Parameter 'method' or 'action' is deprecated, please use 'state' instead", '2.6')
|
||||
method_map = dict(delete='absent', get='query', post='present')
|
||||
self.params['state'] = method_map[self.params['method']]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue