Fix for sudo defaults if sudo is passed in via --extra-vars

This commit is contained in:
Michael DeHaan 2012-10-27 16:46:33 -04:00
parent 7d7ff9d616
commit a768e9a9ff
2 changed files with 12 additions and 2 deletions

View file

@ -499,3 +499,12 @@ def get_available_modules(dirname=None):
modules_list.update(os.listdir(path))
modules_list = list(modules_list)
return modules_list
def boolean(value):
val = str(value)
if val.lower() in [ "true", "t", "y", "1", "yes" ]:
return True
else:
return False