mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Fix tower_* modules **params kwargs (#40137)
* Add cleaning function to handle **params
The cleaning function is only added to tower modules which pass a `**params`
argument as an unpacked dictionnary to the tower-cli method calls.
Fix #39745
* Remove previous code added only for tower_role
In 872a7b4
, the `update_resources` function was modified so that it would clear unwanted
parameters. However, this behaviour is desired for other modules too, modified in
another commit. (see tower_clean_params).
This commit is contained in:
parent
c4536bc827
commit
81de7582d9
4 changed files with 8 additions and 12 deletions
|
@ -134,7 +134,7 @@ def main():
|
|||
name = module.params.get('name')
|
||||
inventory = module.params.get('inventory')
|
||||
credential = module.params.get('credential')
|
||||
state = module.params.get('state')
|
||||
state = module.params.pop('state')
|
||||
|
||||
variables = module.params.get('variables')
|
||||
if variables:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue