From 73050a87433e009e4cc2950663207580afe65cd7 Mon Sep 17 00:00:00 2001 From: Wei Huang Date: Tue, 13 Aug 2024 22:24:02 +0000 Subject: [PATCH] fix pynorms error --- workflow/rocoto/workflow_xml.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/workflow/rocoto/workflow_xml.py b/workflow/rocoto/workflow_xml.py index b697e349a9..d9ca4fb961 100644 --- a/workflow/rocoto/workflow_xml.py +++ b/workflow/rocoto/workflow_xml.py @@ -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}', '#################################################################', ''])