lint: not in

This commit is contained in:
Iain Learmonth 2022-11-28 20:49:27 +00:00
parent d9158ac942
commit aeca11024a

View file

@ -128,7 +128,7 @@ def run_job(job_cls: Type[BaseAutomation], *,
automation.state = AutomationState.IDLE
automation.next_run = datetime.datetime.utcnow() + datetime.timedelta(
minutes=getattr(job, "frequency", 7))
if not 'TERRAFORM_DIRECTORY' in app.config:
if 'TERRAFORM_DIRECTORY' not in app.config:
# We used a temporary working directory
shutil.rmtree(working_dir)
else: