From 2e49d2003d645b37805cf96a230507d82309d229 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Tue, 3 Sep 2013 14:20:56 -0500 Subject: [PATCH] Fix bug where accelerate keyword was not checked for boolean value The play was just checking for the presence of the keyword in the YAML datastructure, and not the value of the field, so doing something like variable substitution was always causing the play to be accelerated --- lib/ansible/playbook/play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index dd90f206ea..6e76cf717b 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -112,7 +112,7 @@ class Play(object): self.gather_facts = ds.get('gather_facts', None) self.remote_port = self.remote_port self.any_errors_fatal = ds.get('any_errors_fatal', False) - self.accelerate = ds.get('accelerate', False) + self.accelerate = utils.boolean(ds.get('accelerate', 'false')) self.accelerate_port = ds.get('accelerate_port', None) self.max_fail_pct = int(ds.get('max_fail_percentage', 100))