Jelajahi Sumber

Merge pull request #10452 from jpbetz/automated-cherry-pick-of-#10443-origin-release-3.2

Automated cherry pick of #10443 to release 3.2
Joe Betz 7 tahun lalu
induk
melakukan
e06761ed79
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      etcdctl/ctlv2/command/util.go

+ 1 - 1
etcdctl/ctlv2/command/util.go

@@ -103,7 +103,7 @@ func getDomainDiscoveryFlagValue(c *cli.Context) ([]string, error) {
 	// strip insecure connections
 	// strip insecure connections
 	ret := []string{}
 	ret := []string{}
 	for _, ep := range eps {
 	for _, ep := range eps {
-		if strings.HasPrefix("http://", ep) {
+		if strings.HasPrefix(ep, "http://") {
 			fmt.Fprintf(os.Stderr, "ignoring discovered insecure endpoint %q\n", ep)
 			fmt.Fprintf(os.Stderr, "ignoring discovered insecure endpoint %q\n", ep)
 			continue
 			continue
 		}
 		}