Skip to content

Commit

Permalink
fixed bug in sed statement
Browse files Browse the repository at this point in the history
  • Loading branch information
astro-friedel committed May 18, 2022
1 parent 2d846ec commit 48ede9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/processingfw/pfwblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@ def write_jobwcl(config, jobkey, jobdict):

if miscutils.convertBool(config.getfull(pfwdefs.PF_USE_DB_OUT)):
if send_services:
jobwcl['des_services'] = "INCOMING_SERVICES"
jobwcl['des_services'] = "REPLACE_SERVICES"
elif 'target_des_services' in config and config.getfull('target_des_services') is not None:
jobwcl['des_services'] = config.getfull('target_des_services')
jobwcl['des_db_section'] = config['target_des_db_section']
Expand Down Expand Up @@ -2597,8 +2597,8 @@ def write_runjob_script(config):
if send_services:
scriptstr += f"chmod 600 $initdir/{services_file}\n"
scriptstr += f"export DES_SERVICES=$initdir/{services_file}\n"
scriptstr += f"sed -i \"s/INCOMING_SERVICES/$DES_SERVICES/g\" $jobwcl\n"
scriptstr += 'echo ""\n'
scriptstr += f"sed -i \"s|REPLACE_SERVICES|$DES_SERVICES|g\" $jobwcl\n"
scriptstr += 'echo ""\n'

# print start of job information

Expand Down

0 comments on commit 48ede9f

Please sign in to comment.