This commit is contained in:
0xdcarns 2022-01-10 17:56:37 -05:00 committed by Matthew R Kasun
parent cd5bce8812
commit 47c00bd30f

View file

@ -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)