From b0e6baf8c3cbc10154a476ad6d69369b27f051d7 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 10 Jul 2015 03:19:48 -0400 Subject: [PATCH] Fix bug where options may not have the force_handlers value from the cli --- lib/ansible/executor/connection_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/executor/connection_info.py b/lib/ansible/executor/connection_info.py index 1a94360a7ed..46ce129e45b 100644 --- a/lib/ansible/executor/connection_info.py +++ b/lib/ansible/executor/connection_info.py @@ -239,7 +239,7 @@ class ConnectionInformation: # self.no_log = boolean(options.no_log) if options.check: self.check_mode = boolean(options.check) - if options.force_handlers: + if hasattr(options, 'force_handlers') and options.force_handlers: self.force_handlers = boolean(options.force_handlers) # get the tag info from options, converting a comma-separated list