mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-04 00:17:21 +08:00
refactoring serverinfo logic
This commit is contained in:
@@ -78,5 +78,9 @@ func Pull(network string, iface bool) (*models.Node, error) {
|
||||
if bkupErr != nil {
|
||||
logger.Log(0, "unable to update backup file")
|
||||
}
|
||||
if err = SetServerInfo(cfg); err != nil {
|
||||
logger.Log(0, "error pulling server info: "+err.Error())
|
||||
}
|
||||
|
||||
return &resNode, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user