mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-29 16:11:22 -07:00
fix mongodb_parameter
This is broken the module when using str parameters. Value is already converted to int, if necessary at line 193
This commit is contained in:
parent
9f2d8c2409
commit
0bf7a7321a
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ def main():
|
||||||
db = client.admin
|
db = client.admin
|
||||||
|
|
||||||
try:
|
try:
|
||||||
after_value = db.command("setParameter", **{param: int(value)})
|
after_value = db.command("setParameter", **{param: value})
|
||||||
except OperationFailure:
|
except OperationFailure:
|
||||||
e = get_exception()
|
e = get_exception()
|
||||||
module.fail_json(msg="unable to change parameter: %s" % str(e))
|
module.fail_json(msg="unable to change parameter: %s" % str(e))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue