Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Try to fix nextpool overide via runcmd.
Fixes #160: Job overwrite "nextpool" in run command in bconsole doesn't work
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent f59a541 commit 55042d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dird/ua_run.c
Expand Up @@ -620,8 +620,10 @@ static bool reset_restore_context(UAContext *ua, JCR *jcr, RUN_CTX &rc)

if (rc.next_pool_name) {
pm_strcpy(jcr->res.npool_source, _("command line"));
jcr->res.run_next_pool_override = true;
} else if (jcr->res.next_pool != jcr->res.pool->NextPool) {
pm_strcpy(jcr->res.npool_source, _("user input"));
jcr->res.run_next_pool_override = true;
}

jcr->res.client = rc.client;
Expand Down

0 comments on commit 55042d3

Please sign in to comment.