Skip to content
Snippets Groups Projects
Commit 34f23e68 authored by Jesús Marín's avatar Jesús Marín
Browse files

Add missing validation in ipasudocmd

This fixes the issue https://github.com/freeipa/ansible-freeipa/issues/185, where the python script was launching an exception
There was a lack of verification that the input string (for the description) was a text string
parent 6b3cae53
Branches
Tags
No related merge requests found
......@@ -97,7 +97,7 @@ def find_sudocmd(module, name):
def gen_args(description):
_args = {}
if description is not None:
_args["description"] = description
_args["description"] = to_text(description)
return _args
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment