mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 01:54:34 +08:00
missave
This commit is contained in:
parent
cd5bce8812
commit
47c00bd30f
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ func DeleteNetwork(network string) error {
|
|||
servers, err := GetSortedNetworkServerNodes(network)
|
||||
if err == nil {
|
||||
for _, s := range servers {
|
||||
if err = DeleteNodeByID(&s, true); err != nil {
|
||||
if err = DeleteNodeByMacAddress(&s, true); err != nil {
|
||||
logger.Log(2, "could not removed server", s.Name, "before deleting network", network)
|
||||
} else {
|
||||
logger.Log(2, "removed server", s.Name, "before deleting network", network)
|
||||
|
|
Loading…
Reference in a new issue