summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelivanov Pavel <selivan2@gmail.com>2016-01-20 23:11:44 +0300
committerSelivanov Pavel <selivan2@gmail.com>2016-01-20 23:12:26 +0300
commit3201f5d90e311735b54af21fc621a9197e1eb788 (patch)
tree3c342bc664656a2df09b1bb5b6503aecfd7d4297
parentd49b11e9962df4bde4b8f3d61029305af4115748 (diff)
downloadansible-3201f5d90e311735b54af21fc621a9197e1eb788.tar.gz
plugins/strategy: added significant details to parser error message.
See discussion at https://github.com/ansible/ansible/issues/13753
-rw-r--r--lib/ansible/plugins/strategy/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/plugins/strategy/__init__.py b/lib/ansible/plugins/strategy/__init__.py
index 0b7f48b563..3013eac3d7 100644
--- a/lib/ansible/plugins/strategy/__init__.py
+++ b/lib/ansible/plugins/strategy/__init__.py
@@ -492,7 +492,7 @@ class StrategyBase:
tags = [ tags ]
if len(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)",
+ 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",
obj=included_file._task._ds)
display.deprecated("You should not specify tags in the include parameters. All tags should be specified using the task-level option")
b._task_include.tags = tags