Merge pull request #50069 from fisherxu/master

Automatic merge from submit-queue (batch tested with PRs 48237, 50084, 50019, 50069, 50090)

Fix comment of isHTTPSURL

**What this PR does / why we need it**:
fix comment of isHTTPSURL
This commit is contained in:
Kubernetes Submit Queue 2017-08-03 22:22:03 -07:00 committed by GitHub
commit 151b8118d5

View File

@ -64,7 +64,7 @@ func GetValidatedClusterInfoObject(cfg *kubeadmapi.NodeConfiguration) (*clientcm
}
}
// isHTTPSURL checks whether the string is parsable as an URL
// isHTTPSURL checks whether the string is parsable as an URL and whether the Scheme is https
func isHTTPSURL(s string) bool {
u, err := url.Parse(s)
return err == nil && u.Scheme == "https"