Skip to content

Commit 0e8e6a6

Browse files
committed
Merge pull request sorintlab#536 from sgotti/sentinel_fix_govet_1.11_error
sentinel: fix govet 1.11 error
2 parents 56d4327 + 9b9601a commit 0e8e6a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/sentinel/cmd/sentinel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ func (s *Sentinel) updateCluster(cd *cluster.ClusterData, pis cluster.ProxiesInf
935935
}
936936
}
937937
default:
938-
return nil, fmt.Errorf("unknown init mode %q", clusterSpec.InitMode)
938+
return nil, fmt.Errorf("unknown init mode %s", *cd.Cluster.DefSpec().InitMode)
939939
}
940940

941941
case cluster.ClusterPhaseNormal:

0 commit comments

Comments
 (0)