pkg/serverinit: call readFields on GCE too

Fixes #1193

Change-Id: Ic82af5ec94e010d5d0d4d63df814daf4ad9e0542
This commit is contained in:
mpl 2018-06-19 18:23:57 +02:00
parent feef4b6b0d
commit 7f17c0483f
1 changed files with 9 additions and 1 deletions

View File

@ -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
}