Skip to content

Commit f75ef85

Browse files
committed
fix suggested by easwars
1 parent 5be0746 commit f75ef85

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/cloud_sql_proxy/cloud_sql_proxy.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@ func listInstances(ctx context.Context, cl *http.Client, projects []string) ([]s
340340
}
341341

342342
func gcloudProject() []string {
343-
const gcloudResultErrStr = "gcloud failed to get project list. See log for detail."
344343
buf := new(bytes.Buffer)
345344
cmd := exec.Command("gcloud", "--format", "json", "config", "list", "core/project")
346345
cmd.Stdout = buf

cmd/cloud_sql_proxy/proxy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,9 @@ func CreateInstanceConfigs(dir string, useFuse bool, instances []string, instanc
343343
// 2. failed to invoke gcloud
344344
var flags string
345345
if fuse.Supported() {
346-
flags = "-projects, -fuse, or -instances"
346+
flags = "-projects, -fuse, -instances or -instances_metadata"
347347
} else {
348-
flags = "-projects or -instances"
348+
flags = "-projects, -instances or -instances_metadata"
349349
}
350350

351351
errStr := fmt.Sprintf("no instance selected because none of %s is specified", flags)

0 commit comments

Comments
 (0)