From: Kern Sibbald Date: Sat, 26 Jul 2014 11:37:07 +0000 (+0200) Subject: Fix bug #1679 pool overrides not shown in manual run display X-Git-Tag: Release-7.0.5~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c1beab9f20356e22545541553fe9d2e166e4acf6;p=bacula%2Fbacula Fix bug #1679 pool overrides not shown in manual run display --- diff --git a/bacula/src/dird/ua_run.c b/bacula/src/dird/ua_run.c index b796371a5c..1f593fb2dc 100644 --- a/bacula/src/dird/ua_run.c +++ b/bacula/src/dird/ua_run.c @@ -653,6 +653,10 @@ int modify_job_parameters(UAContext *ua, JCR *jcr, run_ctx &rc) case 0: /* Level */ select_job_level(ua, jcr); + if (jcr->is_JobType(JT_BACKUP) && !jcr->is_JobLevel(L_VIRTUAL_FULL)) { + apply_pool_overrides(jcr); + rc.pool = jcr->pool; + } goto try_again; case 1: /* Storage */ @@ -721,12 +725,12 @@ int modify_job_parameters(UAContext *ua, JCR *jcr, run_ctx &rc) jcr->getJobType() == JT_MIGRATE || jcr->getJobType() == JT_VERIFY) { /* Pool */ rc.pool = select_pool_resource(ua); - if (rc.pool) { + if (rc.pool && rc.pool != jcr->pool) { jcr->pool = rc.pool; + pm_strcpy(jcr->pool_source, _("User input")); Dmsg1(100, "Set new pool=%s\n", jcr->pool->name()); - goto try_again; } - break; + goto try_again; } /* Bootstrap */ @@ -846,8 +850,6 @@ static bool set_run_context_in_jcr(UAContext *ua, JCR *jcr, run_ctx &rc) jcr->next_pool = rc.next_pool; if (rc.pool_name) { pm_strcpy(jcr->pool_source, _("Command input")); - } else if (jcr->pool != jcr->job->pool) { - pm_strcpy(jcr->pool_source, _("User input")); } if (rc.next_pool_name) { pm_strcpy(jcr->next_pool_source, _("Command input"));