Merge "Only add non-empty blacklisted hostnames."

This commit is contained in:
Zuul 2020-04-20 00:53:02 +00:00 committed by Gerrit Code Review
commit 3863b24736
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ class AnsiblePlaybookAction(base.TripleOAction):
if self.blacklisted_hostnames:
host_pattern = ':'.join(
['!%s' % h for h in self.blacklisted_hostnames])
['!%s' % h for h in self.blacklisted_hostnames if h])
command.extend(['--limit', host_pattern])
if self.tags: