1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #14353 from felixfontein/devel

Include's tags argument allows only one tag to be specified.
This commit is contained in:
James Cammarata 2016-02-08 08:52:12 -05:00
commit 45755bc0e5

View file

@ -489,7 +489,7 @@ class StrategyBase:
# error so that users know not to specify them both ways # error so that users know not to specify them both ways
tags = temp_vars.pop('tags', []) tags = temp_vars.pop('tags', [])
if isinstance(tags, string_types): if isinstance(tags, string_types):
tags = [ tags ] tags = tags.split(',')
if len(tags) > 0: if len(tags) > 0:
if len(b._task_include.tags) > 0: if len(b._task_include.tags) > 0:
raise AnsibleParserError("Include tasks should not specify tags in more than one way (both via args and directly on the task). Mixing tag specify styles is prohibited for whole import hierarchy, not only for single import statement", raise AnsibleParserError("Include tasks should not specify tags in more than one way (both via args and directly on the task). Mixing tag specify styles is prohibited for whole import hierarchy, not only for single import statement",