From 75b172c7061195581cab81e2af11cd0e8ace177c Mon Sep 17 00:00:00 2001 From: Brian Beggs Date: Wed, 6 Apr 2016 17:07:03 -0400 Subject: [PATCH] hipchat api v2 rooms are now url escaped --- lib/ansible/modules/extras/notification/hipchat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/notification/hipchat.py b/lib/ansible/modules/extras/notification/hipchat.py index 1a407783aa5..41e2abe3846 100644 --- a/lib/ansible/modules/extras/notification/hipchat.py +++ b/lib/ansible/modules/extras/notification/hipchat.py @@ -141,7 +141,7 @@ def send_msg_v2(module, token, room, msg_from, msg, msg_format='text', POST_URL = api + NOTIFY_URI_V2 - url = POST_URL.replace('{id_or_name}', room) + url = POST_URL.replace('{id_or_name}', urllib.pathname2url(room)) data = json.dumps(body) if module.check_mode: