mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user