mirror of
https://github.com/Luzifer/duplicity-backup.git
synced 2024-12-20 18:41:21 +00:00
Initialize hostname as a default
This commit is contained in:
parent
005f9b0df1
commit
0040c44d3b
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue