Wrap gce.conf parse with FatalOnly error filter

pull/6/head
Nick Sardo 2017-07-26 08:52:55 -07:00
parent 99ff40a1bb
commit cde038b9be
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ func newGCECloud(config io.Reader) (*GCECloud, error) {
var nodeInstancePrefix string
if config != nil {
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)
return nil, err
}