consul: fix json marshaling

pull/336/head
Ryan Uber 10 years ago
parent e20a724999
commit 0da6e08d9d

@ -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…
Cancel
Save