Split up comma-separated tags properly

Fixes #13795
pull/13924/head
James Cammarata 9 years ago
parent 28fecc9ce1
commit 14bf6b016c

@ -38,7 +38,11 @@ class Taggable:
if isinstance(ds, list):
return ds
elif isinstance(ds, basestring):
return [ ds ]
value = ds.split(',')
if isinstance(value, list):
return [ x.strip() for x in value ]
else:
return [ ds ]
else:
raise AnsibleError('tags must be specified as a list', obj=ds)

Loading…
Cancel
Save