Skip to content

Commit 70eb9b7

Browse files
hown3dBenjosh95
authored andcommitted
move errors into hasStatus
Signed-off-by: Lukas Hoehl <[email protected]>
1 parent 4cf5931 commit 70eb9b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/cmd/ske/cluster/describe/describe.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,14 @@ func outputResult(p *print.Printer, outputFormat string, cluster *ske.Cluster) e
132132
if cluster.HasStatus() {
133133
table.AddRow("STATE", utils.PtrString(cluster.Status.Aggregated))
134134
table.AddSeparator()
135+
if clusterErrs := cluster.Status.GetErrors(); len(clusterErrs) != 0 {
136+
handleClusterErrors(clusterErrs, &table)
137+
}
135138
}
136139
if cluster.Kubernetes != nil {
137140
table.AddRow("VERSION", utils.PtrString(cluster.Kubernetes.Version))
138141
table.AddSeparator()
139142
}
140-
if clusterErrs := cluster.Status.GetErrors(); len(clusterErrs) != 0 {
141-
handleClusterErrors(clusterErrs, &table)
142-
}
143143

144144
table.AddRow("ACL", acl)
145145
err := table.Display(p)

0 commit comments

Comments
 (0)