Allow type=list module arguments to accept integers and floats.

This commit is contained in:
Michael DeHaan 2014-03-28 11:18:29 -04:00
parent 7a6c60b437
commit a6b25e8657

View file

@ -685,6 +685,8 @@ class AnsibleModule(object):
if not isinstance(value, list):
if isinstance(value, basestring):
self.params[k] = value.split(",")
elif isinstance(value, int) or isinstance(value, float):
self.params[k] = [ str(value) ]
else:
is_invalid = True
elif wanted == 'dict':