consul: fix json marshaling
This commit is contained in:
parent
8a4ed84711
commit
4b26566537
|
@ -116,7 +116,8 @@ func Create(config *Config, logOutput io.Writer) (*Agent, error) {
|
|||
|
||||
// Setup encryption keyring files
|
||||
if !config.DisableKeyring && config.EncryptKey != "" {
|
||||
keyringBytes, err := json.MarshalIndent([]string{config.EncryptKey})
|
||||
keys := []string{config.EncryptKey}
|
||||
keyringBytes, err := json.MarshalIndent(keys, "", " ")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue