Merge pull request #224 from jkleint/devel

Support YAML list of hosts in playbook.
pull/4420/head
Michael DeHaan 2012-04-24 13:58:18 -07:00
commit decc46ad17
1 changed files with 2 additions and 0 deletions

View File

@ -544,6 +544,8 @@ 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 isinstance(pattern, list):
pattern = ';'.join(pattern)
if self.override_hosts: if self.override_hosts:
pattern = 'all' pattern = 'all'
if pattern is None: if pattern is None: