Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
84b70d97
Commit
84b70d97
authored
22 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Minor code restructure for revoke credential RPC to permit reply without error.
parent
66e680c4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/slurmd/req.c
+2
-3
2 additions, 3 deletions
src/slurmd/req.c
with
2 additions
and
3 deletions
src/slurmd/req.c
+
2
−
3
View file @
84b70d97
...
...
@@ -540,7 +540,7 @@ _job_still_running(uint32_t job_id)
static
void
_rpc_revoke_credential
(
slurm_msg_t
*
msg
,
slurm_addr
*
cli
)
{
int
rc
;
int
rc
=
SLURM_SUCCESS
;
uid_t
req_uid
=
slurm_auth_uid
(
msg
->
cred
);
revoke_credential_msg_t
*
req
=
(
revoke_credential_msg_t
*
)
msg
->
data
;
...
...
@@ -549,8 +549,7 @@ _rpc_revoke_credential(slurm_msg_t *msg, slurm_addr *cli)
(
unsigned
int
)
req_uid
);
slurm_send_rc_msg
(
msg
,
ESLURM_USER_ID_MISSING
);
}
else
{
rc
=
revoke_credential
(
req
,
conf
->
cred_state_list
);
if
(
rc
<
0
)
if
(
revoke_credential
(
req
,
conf
->
cred_state_list
)
<
0
)
error
(
"revoking credential for job %d: %m"
,
req
->
job_id
);
else
{
...
...
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