Browse Source

consul: fix json marshaling

pull/336/head
Ryan Uber 10 years ago
parent
commit
0da6e08d9d
  1. 3
      command/agent/agent.go

3
command/agent/agent.go

@ -116,7 +116,8 @@ func Create(config *Config, logOutput io.Writer) (*Agent, error) {
// Setup encryption keyring files // Setup encryption keyring files
if !config.DisableKeyring && config.EncryptKey != "" { if !config.DisableKeyring && config.EncryptKey != "" {
keyringBytes, err := json.MarshalIndent([]string{config.EncryptKey}) keys := []string{config.EncryptKey}
keyringBytes, err := json.MarshalIndent(keys, "", " ")
if err != nil { if err != nil {
return nil, err return nil, err
} }

Loading…
Cancel
Save