Fix go vet issue

This commit is contained in:
Darren Shepherd 2019-01-24 10:51:24 -07:00
parent 6fa7f5b3ae
commit 84b6c461b9

View File

@ -179,7 +179,7 @@ func writeKubeConfig(certs string, tlsConfig *dynamiclistener.UserConfig, config
if err == nil {
os.Chmod(kubeConfig, os.FileMode(mode))
} 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)
}
}