Skip to content

Commit

Permalink
pika connection param fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ut112 committed Nov 2, 2017
1 parent a89b549 commit 2a18bc1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion health_check/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Used by setup.py, so minimize top-level imports.

VERSION = (2, 4, 0)
VERSION = (2, 4, 2)

__version__ = ".".join(str(i) for i in VERSION)
2 changes: 1 addition & 1 deletion health_check/contrib/rmq/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ class RMQHealthCheck(BaseHealthCheckBackend):
def check_status(self):
logger = logging.getLogger(__name__)
try:
pika.BlockingConnection(pika.ConnectionParameters(settings.HEALTH_CHECK_CONF['rmq_host']))
pika.BlockingConnection(pika.URLParameters(settings.HEALTH_CHECK_CONF['rmq_host']))
except Exception as e:
raise ServiceUnavailable("Connection Error")
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ def read(fname):


setup(
name="django-health-check",
name="treebo-health-check",
version=__version__,
author="Kristian Ollegaard",
author_email="kristian@oellegaard.com",
author="Utkarsh Mishra",
author_email="utkarsh@treebohotels.com",
description=("a pluggable app that runs a full check on the deployment,"
" using a number of plugins to check e.g. database, queue server, celery processes, etc."),
license="BSD",
Expand Down

0 comments on commit 2a18bc1

Please sign in to comment.