1
0
Fork 0
mirror of https://github.com/Luzifer/duplicity-backup.git synced 2024-11-08 15:10:06 +00:00

Initialize hostname as a default

This commit is contained in:
Knut Ahlers 2016-05-22 16:20:36 +02:00
parent 005f9b0df1
commit 0040c44d3b
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -108,7 +108,11 @@ func loadConfigFile(in io.Reader) (*configFile, error) {
return nil, err return nil, err
} }
res := &configFile{} hostname, _ := os.Hostname()
res := &configFile{
Hostname: hostname,
}
if err := yaml.Unmarshal(fileContent, res); err != nil { if err := yaml.Unmarshal(fileContent, res); err != nil {
return nil, err return nil, err
} }