From 989913bc21f3e1aec7fb1076c527d19cc3244c54 Mon Sep 17 00:00:00 2001 From: Mahemoff Date: Wed, 19 Mar 2014 18:08:30 +0000 Subject: [PATCH] Change hipchat notification default to true --- plugins/callbacks/hipchat.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/callbacks/hipchat.py b/plugins/callbacks/hipchat.py index a7bfdb6ec1b..09e8342a448 100644 --- a/plugins/callbacks/hipchat.py +++ b/plugins/callbacks/hipchat.py @@ -36,7 +36,7 @@ class CallbackModule(object): HIPCHAT_TOKEN (required): HipChat API token HIPCHAT_ROOM (optional): HipChat room to post in. Default: ansible HIPCHAT_FROM (optional): Name to post as. Default: ansible - HIPCHAT_NOTIFY (optional): Add notify flag to important messages ("true" or "false"). Default: false + HIPCHAT_NOTIFY (optional): Add notify flag to important messages ("true" or "false"). Default: true Requires: prettytable @@ -53,7 +53,8 @@ class CallbackModule(object): self.token = os.getenv('HIPCHAT_TOKEN') self.room = os.getenv('HIPCHAT_ROOM', 'ansible') self.from_name = os.getenv('HIPCHAT_FROM', 'ansible') - self.allow_notify = (os.getenv('HIPCHAT_NOTIFY') == 'true') + self.allow_notify = (os.getenv('HIPCHAT_NOTIFY') != 'false') + print(self.allow_notify) if self.token is None: self.disabled = True