Fix typo, pushing this in
This commit is contained in:
@@ -323,7 +323,7 @@ func fixConfigV3() {
|
||||
fatalIf(err.Trace(), "Unable to load config.")
|
||||
|
||||
// Update to newer version
|
||||
if len(mcConfigV3.Data().(*brokenConfigV3).Aliases) == 0 || mcConfigV3.Data().(*brokenConfigV3).ACL != "" || mcConfigV3.Data().(*brokenConfigV3).Access != "" && mcConfigV3.Version() == "3" {
|
||||
if len(mcConfigV3.Data().(*brokenConfigV3).Aliases) != 0 || mcConfigV3.Data().(*brokenConfigV3).ACL != "" || mcConfigV3.Data().(*brokenConfigV3).Access != "" && mcConfigV3.Version() == "3" {
|
||||
confV3 := new(configV3)
|
||||
confV3.Aliases = mcConfigV3.Data().(*brokenConfigV3).Aliases
|
||||
confV3.Hosts = make(map[string]hostConfig)
|
||||
|
||||
+2
-2
@@ -24,8 +24,8 @@ import (
|
||||
)
|
||||
|
||||
type hostConfig struct {
|
||||
AccessKeyID string `json:"accesskey-id"`
|
||||
SecretAccessKey string `json:"secretaccess-key"`
|
||||
AccessKeyID string `json:"access-key-id"`
|
||||
SecretAccessKey string `json:"secret-access-key"`
|
||||
}
|
||||
|
||||
// getHostConfig retrieves host specific configuration such as access keys, certs.
|
||||
|
||||
Reference in New Issue
Block a user