mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
If tags "all" is used, don't choke.
This commit is contained in:
parent
508c04b85b
commit
00c4c5c4a1
1 changed files with 2 additions and 1 deletions
|
@ -166,6 +166,7 @@ class PlayBook(object):
|
||||||
# if the playbook is invoked with --tags that don't exist at all in the playbooks
|
# if the playbook is invoked with --tags that don't exist at all in the playbooks
|
||||||
# then we need to raise an error so that the user can correct the arguments.
|
# then we need to raise an error so that the user can correct the arguments.
|
||||||
unknown_tags = set(self.only_tags) - (matched_tags_all | unmatched_tags_all)
|
unknown_tags = set(self.only_tags) - (matched_tags_all | unmatched_tags_all)
|
||||||
|
unknown_tags.discard('all')
|
||||||
|
|
||||||
if len(unknown_tags) > 0:
|
if len(unknown_tags) > 0:
|
||||||
unmatched_tags_all.discard('all')
|
unmatched_tags_all.discard('all')
|
||||||
|
|
Loading…
Reference in a new issue