Browse Source

actually run v2ctl

pull/714/merge v2.49
Darien Raymond 7 years ago
parent
commit
e69e6d00cb
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 11
      main/config_json.go

11
main/config_json.go

@ -26,7 +26,16 @@ func jsonToProto(input io.Reader) (*core.Config, error) {
return nil, err
}
defer stdoutReader.Close()
return core.LoadConfig(core.ConfigFormat_Protobuf, stdoutReader)
if err := cmd.Start(); err != nil {
return nil, err
}
config, err := core.LoadConfig(core.ConfigFormat_Protobuf, stdoutReader)
cmd.Wait()
return config, err
}
func init() {

Loading…
Cancel
Save