From f9008932421340c3adf991c8d7f4c90e072f730a Mon Sep 17 00:00:00 2001 From: Wei Huang Date: Fri, 2 Aug 2024 13:56:28 +0000 Subject: [PATCH] correct pynorms error --- workflow/rocoto/workflow_xml.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/workflow/rocoto/workflow_xml.py b/workflow/rocoto/workflow_xml.py index 8c859db25e..efc067f4df 100644 --- a/workflow/rocoto/workflow_xml.py +++ b/workflow/rocoto/workflow_xml.py @@ -156,21 +156,21 @@ def _write_crontab(self, crontab_file: str = None, cronint: int = 5) -> None: replyto = '' strings = ['', - f'#################### {pslot} ####################', - f'MAILTO="{replyto}"' - ] + f'#################### {pslot} ####################', + f'MAILTO="{replyto}"' + ] #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'SHELL="/bin/bash"', + f'BASH_ENV="/etc/bashrc"' + ]) strings.extend( - [ - f'{cronintstr} {rocotorunstr}', - '#################################################################', - '']) + [ + f'{cronintstr} {rocotorunstr}', + '#################################################################', + '']) if crontab_file is None: crontab_file = f"{expdir}/{pslot}.crontab"