Browse Source

fix nmctl node update

Anish Mukherjee 2 years ago
parent
commit
ebb1349228
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cli/cmd/node/update.go

+ 1 - 0
cli/cmd/node/update.go

@@ -50,6 +50,7 @@ var nodeUpdateCmd = &cobra.Command{
 			node.DNSOn = dnsOn
 			node.DNSOn = dnsOn
 			node.Connected = !disconnect
 			node.Connected = !disconnect
 		}
 		}
+		node.HostID = functions.GetNodeByID(networkName, nodeID).Host.ID.String()
 		functions.PrettyPrint(functions.UpdateNode(networkName, nodeID, node))
 		functions.PrettyPrint(functions.UpdateNode(networkName, nodeID, node))
 	},
 	},
 }
 }