Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rabbitmq_agents
Manage
Activity
Members
Labels
Plan
Issues
16
Issue boards
Milestones
Wiki
Code
Merge requests
10
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
rabbitmq_agents
Commits
d068af35
Commit
d068af35
authored
3 years ago
by
Eesaan Atluri
Browse files
Options
Downloads
Patches
Plain Diff
Add missing imports and initiate the RMQ object
parent
8f0ca657
No related branches found
Branches containing commit
No related tags found
2 merge requests
!147
Merge previous default branch feat-cod-rmq into main
,
!119
Feat account management
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
account_manager.py
+5
-0
5 additions, 0 deletions
account_manager.py
with
5 additions
and
0 deletions
account_manager.py
+
5
−
0
View file @
d068af35
...
...
@@ -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
=
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment