Skip to content

Commit

Permalink
change as suggested by reviewer
Browse files Browse the repository at this point in the history
  • Loading branch information
weihuang-jedi committed Jul 2, 2024
1 parent 4e144e5 commit 46e3ef5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions workflow/rocoto/workflow_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ def _write_crontab(self, crontab_file: str = None, cronint: int = 5) -> None:
f'MAILTO="{replyto}"'
]
#AWS need 'SHELL', and 'BASH_ENV' defined, or, the crontab job won't start.
pw_csp = os.environ.get('PW_CSP', None)
if ( pw_csp in ['aws', 'azure', 'google'] ):
if os.environ.get('PW_CSP', None) in ['aws', 'azure', 'google']:
strings.extend(
[
f'SHELL="/bin/bash"',
Expand Down

0 comments on commit 46e3ef5

Please sign in to comment.