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

Revert "Only override the pattern if it is ommitted"

This reverts commit bb0bf9eef4.
This commit is contained in:
Michael DeHaan 2012-03-24 16:21:44 -04:00
parent bb0bf9eef4
commit ab55fa4266

View file

@ -503,7 +503,7 @@ class PlayBook(object):
# get configuration information about the pattern # get configuration information about the pattern
pattern = pg.get('hosts',None) pattern = pg.get('hosts',None)
if self.override_hosts and not pattern: if self.override_hosts:
pattern = 'all' pattern = 'all'
if pattern is None: if pattern is None:
raise errors.AnsibleError('hosts declaration is required') raise errors.AnsibleError('hosts declaration is required')