Skip to content

Commit

Permalink
remove gofumpt transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Aug 10, 2022
1 parent 7761a7f commit 89fbceb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .deepsource.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@ enabled = true

[analyzers.meta]
import_root = "github.com/srl-labs/containerlab"

[[transformers]]
name = "gofumpt"
enabled = true
6 changes: 4 additions & 2 deletions clab/config/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ func PrepareVars(nodes map[string]nodes.Node, links map[int]*types.Link) map[str
if err != nil {
log.Errorf("cannot prepare link vars for %d. %s: %s", lIdx, link.String(), err)
}
res[link.A.Node.ShortName].Vars[vkLinks] = append(res[link.A.Node.ShortName].Vars[vkLinks].([]interface{}), varsA)
res[link.B.Node.ShortName].Vars[vkLinks] = append(res[link.B.Node.ShortName].Vars[vkLinks].([]interface{}), varsB)
res[link.A.Node.ShortName].Vars[vkLinks] =
append(res[link.A.Node.ShortName].Vars[vkLinks].([]interface{}), varsA)
res[link.B.Node.ShortName].Vars[vkLinks] =
append(res[link.B.Node.ShortName].Vars[vkLinks].([]interface{}), varsB)
}

// Prepare top-level map of nodes
Expand Down
3 changes: 2 additions & 1 deletion clab/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ func (c *CLab) generateAnsibleInventory(w io.Writer) error {
for _, n := range c.Nodes {
i.Nodes[n.Config().Kind] = append(i.Nodes[n.Config().Kind], n.Config())
if n.Config().Labels["ansible-group"] != "" {
i.Groups[n.Config().Labels["ansible-group"]] = append(i.Groups[n.Config().Labels["ansible-group"]], n.Config())
i.Groups[n.Config().Labels["ansible-group"]] =
append(i.Groups[n.Config().Labels["ansible-group"]], n.Config())
}
}

Expand Down

0 comments on commit 89fbceb

Please sign in to comment.