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

simplified if conditions

This commit is contained in:
Brian Coca 2015-02-09 11:59:50 -05:00
parent 6579c5ddf5
commit 6fbbf9c118

View file

@ -753,7 +753,7 @@ class PlayBook(object):
if task_set == u: if task_set == u:
should_run = True should_run = True
else: else:
if len(task_set.intersection(self.only_tags)) > 0: if task_set.intersection(self.only_tags):
should_run = True should_run = True
# Check for tags that we need to skip # Check for tags that we need to skip
@ -768,7 +768,7 @@ class PlayBook(object):
should_run = False should_run = False
else: else:
if should_run: if should_run:
if len(task_set.intersection(self.skip_tags)) > 0: if task_set.intersection(self.skip_tags):
should_run = False should_run = False
if should_run: if should_run: