Skip to content

Commit

Permalink
Bump allowed requests version, remove httplib
Browse files Browse the repository at this point in the history
  • Loading branch information
LindsayHill committed Dec 12, 2018
1 parent 5de4782 commit 746b8b9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
@@ -1,5 +1,9 @@
# Change Log

# 0.12.5

- Bump allowed `requests()` version, remove httplib

# 0.12.4

- Added `is_bot` attribute to the user payload in `slack_sensor` sensor.
Expand Down
3 changes: 1 addition & 2 deletions actions/post_message.py
@@ -1,5 +1,4 @@
import json
import httplib

try:
from six.moves.urllib.parse import urlencode
Expand Down Expand Up @@ -46,7 +45,7 @@ def run(self, message, username=None, icon_emoji=None, channel=None,
response = requests.post(url=webhook_url,
headers=headers, data=data)

if response.status_code == httplib.OK:
if response.status_code == requests.codes.ok: # pylint: disable=no-member
self.logger.info('Message successfully posted')
else:
failure_reason = ('Failed to post message: %s (status code: %s)' %
Expand Down
4 changes: 2 additions & 2 deletions pack.yaml
@@ -1,12 +1,12 @@
---
ref: slack
name : slack
description : st2 content pack containing slack integrations
description : Slack Chat integrations
keywords:
- slack
- chat
- messaging
- instant messaging
version: 0.12.4
version: 0.12.5
author : StackStorm, Inc.
email : info@stackstorm.com
2 changes: 1 addition & 1 deletion requirements.txt
@@ -1,4 +1,4 @@
requests>=2.5.0,<2.6
requests>=2.5.0,<3.0
websocket-client==0.44.0
beautifulsoup4==4.6.0
lxml==3.8.0
Expand Down

0 comments on commit 746b8b9

Please sign in to comment.