mirror of https://github.com/perkeep/perkeep.git
pkg/serverinit: call readFields on GCE too
Fixes #1193 Change-Id: Ic82af5ec94e010d5d0d4d63df814daf4ad9e0542
This commit is contained in:
parent
feef4b6b0d
commit
7f17c0483f
|
@ -119,5 +119,13 @@ func DefaultEnvConfig() (*Config, error) {
|
|||
return nil, fmt.Errorf("unexpected value for VM instance metadata key 'perkeep-config-version': %q", configVersion)
|
||||
}
|
||||
|
||||
return genLowLevelConfig(highConf)
|
||||
conf, err := genLowLevelConfig(highConf)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err := conf.readFields(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return conf, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue