Skip to content

Commit

Permalink
Update struct.go
Browse files Browse the repository at this point in the history
  • Loading branch information
genofire committed Jan 14, 2019
1 parent f037dea commit d265ac3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion output/meshviewer-ffrgb/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ func NewNode(nodes *runtime.Nodes, n *runtime.Node) *Node {
if nodeinfo := n.Nodeinfo; nodeinfo != nil {
node.NodeID = nodeinfo.NodeID
node.MAC = nodeinfo.Network.Mac
node.Addresses = nodeinfo.Network.Addresses
node.SiteCode = nodeinfo.System.SiteCode
node.DomainCode = nodeinfo.System.DomainCode
node.Hostname = nodeinfo.Hostname
if addresses := nodeinfo.Network.Addresses; addresses != nil {
node.Addresses = nodeinfo.Network.Addresses
}
if owner := nodeinfo.Owner; owner != nil {
node.Owner = owner.Contact
}
Expand Down

0 comments on commit d265ac3

Please sign in to comment.