Skip to content

Commit bb25a7d

Browse files
committed
make linter happy
1 parent 403ee26 commit bb25a7d

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

cmd/cluster_instance_orchestration.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ func orchestrateInstances(systemStatus *SystemStatus, kubeconfig *KubeConfig) {
3636
return
3737
}
3838

39-
if err != nil {
40-
log.WithError(err).Fatalln("cannot get current containers")
41-
orchestrationRoundErrors += 1
42-
return
43-
}
44-
4539
// Manage an instance for each cluster
4640
for _, cluster := range discoveredClusters {
4741
log.WithFields(log.Fields{"cluster": cluster.Name, "endpoint": cluster.APIEndpoint}).Debugln("processing new cluster")

cmd/provider_gke.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ func updateGKEClusters() {
5353
} else {
5454
log.WithField("cluster", cluster.Name).Debugln("added/updated GKE cluster credentials")
5555
}
56-
cmd.Wait()
56+
57+
err = cmd.Wait()
58+
if err != nil {
59+
log.WithField("cluster", cluster.Name).WithError(err).Errorln("failed to execute command:", string(cmd.String()))
60+
}
5761
}
5862
}
5963

0 commit comments

Comments
 (0)