Merge pull request #1981 from macdiesel/macdiesel/urlencode-hipchat-api-path

Escape room name in hipchat api v2 urls
This commit is contained in:
René Moser 2016-04-10 11:57:01 +02:00
commit 474baaa831

View file

@ -147,7 +147,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: