From 00c4c5c4a1bc664d8b9dde6e3eca56fc43dfe267 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 28 Aug 2012 20:33:36 -0400 Subject: [PATCH] If tags "all" is used, don't choke. --- lib/ansible/playbook/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/playbook/__init__.py b/lib/ansible/playbook/__init__.py index 1e1402da0c3..78a725fe51c 100644 --- a/lib/ansible/playbook/__init__.py +++ b/lib/ansible/playbook/__init__.py @@ -166,7 +166,8 @@ class PlayBook(object): # 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. unknown_tags = set(self.only_tags) - (matched_tags_all | unmatched_tags_all) - + unknown_tags.discard('all') + if len(unknown_tags) > 0: unmatched_tags_all.discard('all') msg = 'tag(s) not found in playbook: %s. possible values: %s'