etcdctl: fix strings.HasPrefix args order

Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
This commit is contained in:
Iskander Sharipov 2019-02-02 02:39:27 +03:00 committed by Joe Betz
parent 45adad4070
commit 19e9417e5a
No known key found for this signature in database
GPG Key ID: 4930C680B6E0DDB8

View File

@ -103,7 +103,7 @@ func getDomainDiscoveryFlagValue(c *cli.Context) ([]string, error) {
// strip insecure connections
ret := []string{}
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)
continue
}