Skip to content

Commit

Permalink
fix pynorms error
Browse files Browse the repository at this point in the history
  • Loading branch information
weihuang-jedi committed Aug 13, 2024
1 parent 1c7e45a commit 73050a8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions workflow/rocoto/workflow_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,9 @@ def _write_crontab(self, crontab_file: str = None, cronint: int = 5) -> None:
]
# AWS need 'SHELL', and 'BASH_ENV' defined, or, the crontab job won't start.
if os.environ.get('PW_CSP', None) in ['aws', 'azure', 'google']:
strings.extend([
f'SHELL="/bin/bash"',
f'BASH_ENV="/etc/bashrc"'
])
strings.extend([
f'{cronintstr} {rocotorunstr}',
strings.extend([f'SHELL="/bin/bash"',
f'BASH_ENV="/etc/bashrc"'])
strings.extend([f'{cronintstr} {rocotorunstr}',
'#################################################################',
''])

Expand Down

0 comments on commit 73050a8

Please sign in to comment.