Commit cde038b9 authored by Nick Sardo's avatar Nick Sardo

Wrap gce.conf parse with FatalOnly error filter

parent 99ff40a1
...@@ -199,7 +199,7 @@ func newGCECloud(config io.Reader) (*GCECloud, error) { ...@@ -199,7 +199,7 @@ func newGCECloud(config io.Reader) (*GCECloud, error) {
var nodeInstancePrefix string var nodeInstancePrefix string
if config != nil { if config != nil {
var cfg Config var cfg Config
if err := gcfg.ReadInto(&cfg, config); err != nil { if err := gcfg.FatalOnly(gcfg.ReadInto(&cfg, config)); err != nil {
glog.Errorf("Couldn't read config: %v", err) glog.Errorf("Couldn't read config: %v", err)
return nil, err return nil, err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment