Skip to content

Commit

Permalink
fixup! job-manager: Add user annotation support
Browse files Browse the repository at this point in the history
  • Loading branch information
chu11 committed Jul 27, 2020
1 parent da103df commit e473fd6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/modules/job-manager/annotate.c
Expand Up @@ -103,10 +103,8 @@ int annotations_update (flux_t *h, struct job *job, json_t *annotations)
if (job->annotations) {
if (update_annotation_recursive (job,
job->annotations,
annotations) < 0) {
flux_log_error (h, "update_annotation_recursive");
annotations) < 0)
return -1;
}
/* Special case: if user cleared all entries, assume we no
* longer need annotations object
*
Expand Down Expand Up @@ -148,10 +146,8 @@ void annotate_handle_request (flux_t *h,
errstr = "guests can only annotate their own jobs";
goto error;
}
if (annotations_update (ctx->h, job, annotations) < 0) {
flux_log_error (h, "%s: annotations_update", __FUNCTION__);
if (annotations_update (ctx->h, job, annotations) < 0)
goto error;
}
if (event_batch_pub_annotations (ctx->event, job) < 0) {
flux_log_error (h, "%s: event_batch_pub_annotations", __FUNCTION__);
goto error;
Expand Down

0 comments on commit e473fd6

Please sign in to comment.