We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e1d3e3 commit 68830beCopy full SHA for 68830be
dev/gpctl/cmd/workspaces-list.go
@@ -56,6 +56,10 @@ var workspacesListCmd = &cobra.Command{
56
pod = fmt.Sprintf("imagebuild-%s", w.GetId())
57
}
58
59
+ var nodeName string
60
+ if w.Runtime != nil {
61
+ nodeName = w.Runtime.NodeName
62
+ }
63
out = append(out, PrintWorkspace{
64
Owner: w.GetMetadata().GetOwner(),
65
WorkspaceID: w.GetMetadata().GetMetaId(),
@@ -64,7 +68,7 @@ var workspacesListCmd = &cobra.Command{
68
Type: w.GetSpec().GetType().String(),
69
Pod: pod,
66
70
Active: w.GetConditions().FirstUserActivity != nil,
67
- Node: w.Runtime.NodeName,
71
+ Node: nodeName,
72
})
73
74
0 commit comments