mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 16:57:51 +08:00
bug squashin
This commit is contained in:
@@ -23,6 +23,9 @@ func GetPeers(networkName string) (map[string]string, error) {
|
||||
return nil, err
|
||||
}
|
||||
currentDataMap := make(map[string]string)
|
||||
if IsEmptyRecord(err) {
|
||||
return currentDataMap, nil
|
||||
}
|
||||
err = json.Unmarshal([]byte(record), ¤tDataMap)
|
||||
return currentDataMap, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user