From 0b0b5e0d9697aad6360001aaa5f83b6d4f3e4542 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Fri, 5 Sep 2014 04:01:02 +0200 Subject: [PATCH] =?UTF-8?q?credidentials=20dans=20secrets=20(c=C3=B4t?= =?UTF-8?q?=C3=A9=20crans)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client.py b/client.py index d050a7b..5fa1b6e 100755 --- a/client.py +++ b/client.py @@ -2,11 +2,15 @@ from __future__ import print_function +from gestion import secrets_new as secrets import pika import json -import config -rabbit_c = pika.BlockingConnection(config.PARAMS) +CREDS = pika.credentials.PlainCredentials('oie', secrets.get('rabbitmq_oie'), True) +PARAMS = pika.ConnectionParameters(host='rabbitmq.crans.org', + port=5671, credentials=CREDS, ssl=True) +rabbit_c = pika.BlockingConnection(PARAMS) + ch = rabbit_c.channel() ch.queue_declare('CransTicket')