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
|
||||
|
||||
try:
|
||||
after_value = db.command("setParameter", **{param: int(value)})
|
||||
after_value = db.command("setParameter", **{param: value})
|
||||
except OperationFailure:
|
||||
e = get_exception()
|
||||
module.fail_json(msg="unable to change parameter: %s" % str(e))
|
||||
|
|
Loading…
Reference in a new issue