Skip to content
Snippets Groups Projects
Commit d068af35 authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

Add missing imports and initiate the RMQ object

parent 8f0ca657
No related branches found
No related tags found
2 merge requests!147Merge previous default branch feat-cod-rmq into main,!119Feat account management
......@@ -5,6 +5,8 @@ import argparse
import signal
import uuid
import rc_util
from rc_rmq import RCRMQ
import rabbit_config as rcfg
parser = argparse.ArgumentParser(description = "Account management driver script")
parser.add_argument("username", help="Username that should be locked/unlocked")
......@@ -26,6 +28,9 @@ state = args.state
service = args.service
corr_id = str(uuid.uuid4())
# Instantiate rabbitmq object
rc_rmq = RCRMQ({"exchange": rcfg.Exchange, "exchange_type": "topic"})
callback_queue = rc_rmq.bind_queue(exclusive=True)
msg = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment