mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
4d3aa72143
commit
b58673289a
1 changed files with 5 additions and 1 deletions
|
@ -38,7 +38,11 @@ class Taggable:
|
||||||
if isinstance(ds, list):
|
if isinstance(ds, list):
|
||||||
return ds
|
return ds
|
||||||
elif isinstance(ds, basestring):
|
elif isinstance(ds, basestring):
|
||||||
return [ ds ]
|
value = ds.split(',')
|
||||||
|
if isinstance(value, list):
|
||||||
|
return [ x.strip() for x in value ]
|
||||||
|
else:
|
||||||
|
return [ ds ]
|
||||||
else:
|
else:
|
||||||
raise AnsibleError('tags must be specified as a list', obj=ds)
|
raise AnsibleError('tags must be specified as a list', obj=ds)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue