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"