Skip to content

Commit

Permalink
fix(layer): history policy default set to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanLonguet committed May 21, 2024
1 parent 2213821 commit 874fa04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1alpha1/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func GetOverrideRunnerSpec(repository *TerraformRepository, layer *TerraformLaye

func GetRunHistoryPolicy(repository *TerraformRepository, layer *TerraformLayer) RunHistoryPolicy {
return RunHistoryPolicy{
KeepLastRuns: chooseInt(repository.Spec.RunHistoryPolicy.KeepLastRuns, layer.Spec.RunHistoryPolicy.KeepLastRuns, 10),
KeepLastRuns: chooseInt(repository.Spec.RunHistoryPolicy.KeepLastRuns, layer.Spec.RunHistoryPolicy.KeepLastRuns, 5),
}
}

Expand Down

0 comments on commit 874fa04

Please sign in to comment.