diff --git a/notification/notifier/slack.py b/notification/notifier/slack.py index 31c103e..26f1d06 100644 --- a/notification/notifier/slack.py +++ b/notification/notifier/slack.py @@ -6,7 +6,7 @@ def __init__(self, config): self.__config = config def notify(self, notification): - slack = Slacker(self.__config['apikey']) + slack = Slacker(self.__config['apikey'], http_proxy=self.__config['slack_http_proxy'], https_proxy=self.__config['slack_https_proxy']) response = slack.chat.post_message(notification.user_to_notify.profile.slack_room_name, notification.message, username="Openduty", icon_url="https://slack.global.ssl.fastly.net/1937/img/services/pagerduty_48.png") if not response.error: diff --git a/requirements.txt b/requirements.txt index bd6dbfa..845a65c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,8 @@ Django==1.8.11 argparse==1.4.0 arrow==0.7 celery==3.1.23 +certifi==2017.4.17 +chardet==3.0.4 dj-database-url==0.4.0 django-annoying==0.8.2 django-auth-ldap==1.2.6 @@ -18,6 +20,7 @@ future==0.14.3 gunicorn==19.3.0 httplib2==0.9.1 icalendar==3.9.0 +idna==2.5 kombu~=3.0 mercurial==3.4.1 oauth2client==1.4.11 @@ -26,13 +29,14 @@ pyasn1-modules==0.0.5 python-dateutil==2.4.2 python-ldap==2.4.19 pytz -requests[security] +requests==2.17.3 mysql-python==1.2.5 rsa six==1.9.0 -slacker==0.6.2 +slacker==0.9.50 sleekxmpp==1.3.1 twilio==4.4.0 +urllib3==1.21.1 vobject wsgiref==0.1.2 django-twilio