Skip to content

Commit

Permalink
rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
karimra committed Jun 23, 2021
1 parent eca0987 commit aa30683
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,10 @@ func hostsEntries(containers []types.GenericContainer, bridgeName string) []byte
return buff.Bytes()
}

func enrichNodes(containers []types.GenericContainer, nodes map[string]nodes.Node, mgmtNet string) {
func enrichNodes(containers []types.GenericContainer, nodesMap map[string]nodes.Node, mgmtNet string) {
for _, c := range containers {
name = c.Labels["clab-node-name"]
if node, ok := nodes[name]; ok {
if node, ok := nodesMap[name]; ok {
// add network information
// skipping host networking nodes as they don't have separate addresses
if strings.ToLower(node.Config().NetworkMode) == "host" {
Expand All @@ -271,6 +271,5 @@ func enrichNodes(containers []types.GenericContainer, nodes map[string]nodes.Nod

node.Config().ContainerID = c.ID
}

}
}

0 comments on commit aa30683

Please sign in to comment.