From 46e3ef543c95d1cf0e717fb60f5d2845dbb90c1c Mon Sep 17 00:00:00 2001 From: Wei Huang Date: Tue, 2 Jul 2024 13:44:08 +0000 Subject: [PATCH] change as suggested by reviewer --- workflow/rocoto/workflow_xml.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/workflow/rocoto/workflow_xml.py b/workflow/rocoto/workflow_xml.py index 29671fc5ed..8c859db25e 100644 --- a/workflow/rocoto/workflow_xml.py +++ b/workflow/rocoto/workflow_xml.py @@ -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"',