Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rabbitmq_agents
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Wiki
Code
Merge requests
8
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
2a82f31a
Commit
2a82f31a
authored
4 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Replace logger with print
parent
758627bf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
4 merge requests
!147
Merge previous default branch feat-cod-rmq into main
,
!85
kill nginx process running under user from login node
,
!78
Feat cod rmq
,
!61
Feat error handle cli
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
create_account.py
+2
-3
2 additions, 3 deletions
create_account.py
with
2 additions
and
3 deletions
create_account.py
+
2
−
3
View file @
2a82f31a
...
@@ -14,7 +14,6 @@ parser.add_argument('-v', '--verbose', action='store_true', help='verbose output
...
@@ -14,7 +14,6 @@ parser.add_argument('-v', '--verbose', action='store_true', help='verbose output
parser
.
add_argument
(
'
-n
'
,
'
--dry-run
'
,
action
=
'
store_true
'
,
help
=
'
enable dry run mode
'
)
parser
.
add_argument
(
'
-n
'
,
'
--dry-run
'
,
action
=
'
store_true
'
,
help
=
'
enable dry run mode
'
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
logger
=
rc_util
.
get_logger
(
args
)
if
args
.
email
==
''
:
if
args
.
email
==
''
:
args
.
email
=
args
.
username
args
.
email
=
args
.
username
...
@@ -38,7 +37,7 @@ def callback(channel, method, properties, body):
...
@@ -38,7 +37,7 @@ def callback(channel, method, properties, body):
rc_util
.
add_account
(
args
.
username
,
email
=
args
.
email
,
full
=
args
.
full_name
,
reason
=
args
.
reason
)
rc_util
.
add_account
(
args
.
username
,
email
=
args
.
email
,
full
=
args
.
full_name
,
reason
=
args
.
reason
)
logger
.
info
(
f
'
Account for
{
args
.
username
}
requested.
'
)
print
(
f
'
Account for
{
args
.
username
}
requested.
'
)
logger
.
info
(
'
Waiting for completion...
'
)
print
(
'
Waiting for completion...
'
)
rc_util
.
consume
(
args
.
username
,
routing_key
=
f
'
complete.
{
args
.
username
}
'
,
callback
=
callback
)
rc_util
.
consume
(
args
.
username
,
routing_key
=
f
'
complete.
{
args
.
username
}
'
,
callback
=
callback
)
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