From ab55fa426618196b95689592007ab4fd4fd16a41 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 24 Mar 2012 16:21:44 -0400 Subject: [PATCH] Revert "Only override the pattern if it is ommitted" This reverts commit bb0bf9eef42d8f00447c74b4453e810a2dbe34f3. --- lib/ansible/playbook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook.py b/lib/ansible/playbook.py index 27595d03760..8197ba6a9e1 100755 --- a/lib/ansible/playbook.py +++ b/lib/ansible/playbook.py @@ -503,7 +503,7 @@ class PlayBook(object): # get configuration information about the pattern pattern = pg.get('hosts',None) - if self.override_hosts and not pattern: + if self.override_hosts: pattern = 'all' if pattern is None: raise errors.AnsibleError('hosts declaration is required')