Commit 65e9f164 authored by Felix Delattre's avatar Felix Delattre
Browse files

Cleaned up connection variables

parent 26508019
Pipeline #41972 passed with stage
in 1 minute and 50 seconds
......@@ -14,3 +14,4 @@ env
venv
.idea
.config
......@@ -20,7 +20,6 @@ import argparse
import sys
import asyncio
import logging
import os
from rabotnik import MessageBus
......@@ -99,17 +98,6 @@ def main(args: list = None, message_bus: MessageBus = None):
group = parser.add_argument_group("message bus")
group.add_argument("--hostname", type=str, help="Set message bus hostname.")
group.add_argument(
"--username",
type=str,
help="Set message bus username.",
)
group.add_argument(
"--password",
type=str,
help="Set message bus password.",
)
group.add_argument(
"--timeout",
type=int,
......@@ -132,10 +120,6 @@ def main(args: list = None, message_bus: MessageBus = None):
logging.getLogger("rabotnik").setLevel(logging.DEBUG)
logger.setLevel(logging.DEBUG)
os.environ.setdefault("RABOTNIK_MESSAGE_BUS_HOST", args.hostname)
os.environ.setdefault("RABOTNIK_MESSAGE_BUS_USER", args.username)
os.environ.setdefault("RABOTNIK_MESSAGE_BUS_PASSWORD", args.password)
if message_bus is None:
message_bus = MessageBus()
loop.create_task(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment