Skip to content

Commit 33bd7ff

Browse files
geroplroboquat
authored andcommitted
[kubecdl] Fix instance filter
1 parent 9298fa0 commit 33bd7ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/kubecdl/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func getNodeName(clusterName, project string) (nodeName, zone string, err error)
127127
Zone string `json:"zone"`
128128
}
129129

130-
out, err := exec.Command("gcloud", "compute", "instances", "list", "--format=json", "--project", project, "--filter=name:server-ws-"+clusterName).CombinedOutput()
130+
out, err := exec.Command("gcloud", "compute", "instances", "list", "--format=json", "--quiet", "--project", project, "--filter=name~server-ws-.*"+clusterName).CombinedOutput()
131131
if err != nil {
132132
return "", "", fmt.Errorf("failed to describe node instances: %s: %w", string(out), err)
133133
}

0 commit comments

Comments
 (0)