Add a call to InitTLS after parsing the cmd line

Signed-off-by: Dominique Vernier <dominique.vernier@us.ibm.com>
pull/5452/head
Dominique Vernier 7 years ago
parent 744cd20eab
commit f9ea712caa

@ -155,6 +155,9 @@ func newRootCmd(args []string) *cobra.Command {
// set defaults from environment
settings.Init(flags)
// set defaults for TLS from environment
settings.InitTLS(flags)
// Find and add plugins
loadPlugins(cmd, out)

@ -65,8 +65,8 @@ func TestEqual(t *testing.T) {
func TestExtractHostname(t *testing.T) {
tests := map[string]string{
"http://example.com": "example.com",
"https://example.com/foo": "example.com",
"http://example.com": "example.com",
"https://example.com/foo": "example.com",
"https://example.com:31337/not/with/a/bang/but/a/whimper": "example.com",
}
for start, expect := range tests {

Loading…
Cancel
Save