Skip to content

Commit

Permalink
cli: only warn if the coordinator policy differs
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerdev committed Feb 8, 2024
1 parent e345847 commit 100fbf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func checkPoliciesMatchManifest(policies map[string]deployment, policyHashes map
func getCoordinatorPolicyHash(policies map[string]deployment, log *slog.Logger) string {
var hash string
for _, deployment := range policies {
if deployment.role == "coordinator" {
if deployment.role == "coordinator" && deployment.policy.Hash().String() != DefaultCoordinatorPolicyHash {
log.Warn("Found unexpected coordinator policy", "name", deployment.name, "hash", deployment.policy.Hash())
hash = deployment.policy.Hash().String()
}
Expand Down

0 comments on commit 100fbf8

Please sign in to comment.