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
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
16e24b6a
Commit
16e24b6a
authored
5 years ago
by
Bo-Chun Chen
Browse files
Options
Downloads
Patches
Plain Diff
Make error message more verbose
parent
01b02a09
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!23
Feat resolve uid gid
,
!18
Redesign RabbitMQ
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ohpc_account_create.py
+2
-1
2 additions, 1 deletion
ohpc_account_create.py
ood_account_create.py
+2
-1
2 additions, 1 deletion
ood_account_create.py
slurm_agent.py
+3
-2
3 additions, 2 deletions
slurm_agent.py
with
7 additions
and
4 deletions
ohpc_account_create.py
+
2
−
1
View file @
16e24b6a
...
...
@@ -20,7 +20,8 @@ def ohpc_account_create(ch, method, properties, body):
print
(
"
[{}]: User {} has been added
"
.
format
(
task
,
username
))
success
=
True
except
:
print
(
"
Failed to create user
"
)
e
=
sys
.
exc_info
()[
0
]
print
(
"
[{}]: Error: {}
"
.
format
(
task
,
e
))
ch
.
basic_ack
(
delivery_tag
=
method
.
delivery_tag
)
msg
[
'
uid
'
]
=
getpwnam
(
username
).
pw_uid
...
...
This diff is collapsed.
Click to expand it.
ood_account_create.py
+
2
−
1
View file @
16e24b6a
...
...
@@ -22,7 +22,8 @@ def ood_account_create(ch, method, properties, body):
print
(
"
[{}]: User {} has been added
"
.
format
(
task
,
username
))
success
=
True
except
:
print
(
"
Failed to create user
"
)
e
=
sys
.
exc_info
()[
0
]
print
(
"
[{}]: Error: {}
"
.
format
(
task
,
e
))
ch
.
basic_ack
(
delivery_tag
=
method
.
delivery_tag
)
...
...
This diff is collapsed.
Click to expand it.
slurm_agent.py
+
3
−
2
View file @
16e24b6a
...
...
@@ -20,8 +20,9 @@ def slurm_account_create(ch, method, properties, body):
print
(
"
SLURM account for user {} has been added
"
.
format
(
username
))
success
=
True
except
:
print
(
"
Failed to create user
"
)
e
=
sys
.
exc_info
()[
0
]
print
(
"
[{}]: Error: {}
"
.
format
(
task
,
e
))
ch
.
basic_ack
(
delivery_tag
=
method
.
delivery_tag
)
# send confirm message
...
...
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