Fix go vet issue

pull/13/head
Darren Shepherd 6 years ago
parent 6fa7f5b3ae
commit 84b6c461b9

@ -179,7 +179,7 @@ func writeKubeConfig(certs string, tlsConfig *dynamiclistener.UserConfig, config
if err == nil { if err == nil {
os.Chmod(kubeConfig, os.FileMode(mode)) os.Chmod(kubeConfig, os.FileMode(mode))
} else { } else {
logrus.Errorf("failed to set %s to mode %s: %v", kubeConfig, mode, err) logrus.Errorf("failed to set %s to mode %s: %v", kubeConfig, os.FileMode(mode), err)
} }
} }

Loading…
Cancel
Save