Skip to content

Commit

Permalink
[FIX] argocd_capacity - Default values for params
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGigSolutions committed Apr 3, 2024
1 parent b0e7a1d commit bd884b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions argocd_deployer/models/application_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _get_master_repository_directory(self, path_does_not_exist_action="create"):
get_param = self.env["ir.config_parameter"].get_param
path = os.path.join(
get_param("argocd.application_set_repo_directory", ""),
get_param("argocd.application_set_branch"),
get_param("argocd.application_set_branch", "master"),
)
self._create_path_or_error(
path, "Master repository directory", path_does_not_exist_action
Expand Down Expand Up @@ -250,7 +250,7 @@ def _format_commit_message(self, message):
def _get_argocd_template(self):
get_param = self.env["ir.config_parameter"].get_param
replacements = {
"{{.config.repository_url}}": get_param("argocd.application_set_repo")
"{{.config.repository_url}}": get_param("argocd.application_set_repo", "")
or "",
"{{.config.branch}}": get_param("argocd.application_set_branch", "master")
or "",
Expand Down
2 changes: 1 addition & 1 deletion argocd_deployer/models/repository_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ def _compute_is_immediate_repo_action_visible(self):
for application in self:
application.is_immediate_repo_action_visible = safe_eval(
self.env["ir.config_parameter"].get_param(
"argocd.allow_immediate_deployment"
"argocd.allow_immediate_deployment", "False"
)
)

0 comments on commit bd884b7

Please sign in to comment.