Skip to content

Commit

Permalink
HTCONDOR-2322 Fix CE job route transform for job environment
Browse files Browse the repository at this point in the history
The macros CONDORCE_PILOT_JOB_ENV and default_pilot_job_env should
already include quotes, so adding quotes results in a ClassAd syntax
error. default_pilot_job_env may be undefined, so set a default of "".
  • Loading branch information
JaimeFrey committed Mar 5, 2024
1 parent 840f0b2 commit 4929f15
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/condor_ce_router_defaults
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ JOB_ROUTER_CONFIG = r"""JOB_ROUTER_TRANSFORM_Env @=jrt
default_env = $(default_env) HOME=$(use_ce_home)
endif
if ! defined default_pilot_job_env
default_pilot_job_env = ""
endif
SET osg_environment "{osg_environment}"
EVALSET environment mergeEnvironment("$(default_env)", \
osg_environment, \
orig_environment, \
"$(CONDORCE_PILOT_JOB_ENV)", \
"$(default_pilot_job_env)")
$(CONDORCE_PILOT_JOB_ENV), \
$(default_pilot_job_env))
@jrt
JOB_ROUTER_POST_ROUTE_TRANSFORM_NAMES = $(JOB_ROUTER_POST_ROUTE_TRANSFORM_NAMES) Env
Expand Down

0 comments on commit 4929f15

Please sign in to comment.