mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 20:04:45 +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):
|
def gen_args(description):
|
||||||
_args = {}
|
_args = {}
|
||||||
if description is not None:
|
if description is not None:
|
||||||
_args["description"] = description
|
_args["description"] = to_text(description)
|
||||||
|
|
||||||
return _args
|
return _args
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user