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:
parent
55d133394d
commit
a935055083
3 changed files with 9 additions and 2 deletions
|
@ -5,6 +5,7 @@ class ListGithubAutomation(ListAutomation):
|
|||
short_name = "list_github"
|
||||
description = "Update mirror lists in GitHub repositories"
|
||||
provider = "github"
|
||||
always_refresh = True
|
||||
|
||||
template_parameters = [
|
||||
"github_api_key"
|
||||
|
|
|
@ -5,6 +5,7 @@ class ListGitlabAutomation(ListAutomation):
|
|||
short_name = "list_gitlab"
|
||||
description = "Update mirror lists in GitLab repositories"
|
||||
provider = "gitlab"
|
||||
always_refresh = True
|
||||
|
||||
template_parameters = [
|
||||
"gitlab_token",
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue