mirror of
https://github.com/shanghai-edu/multissh.git
synced 2025-12-17 05:47:53 +00:00
0.2.3
This commit is contained in:
parent
de1b1f2b59
commit
e704825aa9
5 changed files with 14 additions and 7 deletions
6
g/cfg.go
6
g/cfg.go
|
|
@ -80,7 +80,11 @@ func GetJsonFile(filePath string) ([]SSHHost, error) {
|
|||
return result, err
|
||||
}
|
||||
var m HostJson
|
||||
json.Unmarshal(b, &m)
|
||||
err = json.Unmarshal(b, &m)
|
||||
if err != nil {
|
||||
log.Println("read file ", filePath, err)
|
||||
return result, err
|
||||
}
|
||||
result = m.SshHosts
|
||||
return result, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue