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:
Jonathan Juares Beber 2017-01-02 11:55:10 -02:00 committed by Toshio Kuratomi
parent 9f2d8c2409
commit 0bf7a7321a

View file

@ -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))