Skip to content

Commit 6d2e852

Browse files
committed
Fix log in clusterctl move
The clusterObj will be empty after failure and the log will not print the actual cluster that the cli is trying to get.
1 parent f0065a7 commit 6d2e852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/clusterctl/client/cluster/mover.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ func getClusterObj(ctx context.Context, proxy Proxy, cluster *node, clusterObj *
291291

292292
if err := c.Get(ctx, clusterObjKey, clusterObj); err != nil {
293293
return errors.Wrapf(err, "error reading Cluster %s/%s",
294-
clusterObj.GetNamespace(), clusterObj.GetName())
294+
cluster.identity.Namespace, cluster.identity.Name)
295295
}
296296
return nil
297297
}

0 commit comments

Comments
 (0)