mirror of
https://github.com/rancher/os.git
synced 2025-09-02 07:15:41 +00:00
Fix golint errors
This commit is contained in:
@@ -16,8 +16,8 @@ import (
|
||||
const (
|
||||
NAME string = "rancher"
|
||||
BITS int = 2048
|
||||
ServerTlsPath string = "/etc/docker/tls"
|
||||
ClientTlsPath string = "/home/rancher/.docker"
|
||||
ServerTLSPath string = "/etc/docker/tls"
|
||||
ClientTLSPath string = "/home/rancher/.docker"
|
||||
Cert string = "cert.pem"
|
||||
Key string = "key.pem"
|
||||
ServerCert string = "server-cert.pem"
|
||||
@@ -141,9 +141,9 @@ func generate(c *cli.Context) error {
|
||||
func Generate(generateServer bool, outDir string, hostnames []string) error {
|
||||
if outDir == "" {
|
||||
if generateServer {
|
||||
outDir = ServerTlsPath
|
||||
outDir = ServerTLSPath
|
||||
} else {
|
||||
outDir = ClientTlsPath
|
||||
outDir = ClientTLSPath
|
||||
}
|
||||
log.Infof("Out directory (-d, --dir) not specified, using default: %s", outDir)
|
||||
}
|
||||
|
Reference in New Issue
Block a user