lists/git: always refresh when updating git repos

looks like errors can occur when the latest commit
isn't what is expected
This commit is contained in:
Iain Learmonth 2022-05-18 12:00:18 +01:00
parent 55d133394d
commit a935055083
3 changed files with 9 additions and 2 deletions

View file

@ -14,7 +14,12 @@ class TerraformAutomation(BaseAutomation):
providers to deploy resources.
"""
parallelism = 10
always_refresh: bool = False
"""
Force refresh even when not a full run.
"""
parallelism: int = 10
"""
Default parallelism for remote API calls.
"""
@ -44,7 +49,7 @@ class TerraformAutomation(BaseAutomation):
prehook_result = self.tf_prehook()
self.tf_generate()
self.tf_init()
returncode, logs = self.tf_apply(refresh=full)
returncode, logs = self.tf_apply(refresh=self.always_refresh or full)
self.tf_posthook(prehook_result=prehook_result)
return True if returncode == 0 else False, logs