Skip to content

Commit

Permalink
Vc/list server (#151)
Browse files Browse the repository at this point in the history
* preload for vendor and model details

* linter update
  • Loading branch information
DoctorVin authored Nov 7, 2024
1 parent 68b8771 commit bfedd9d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ linters:
- nilerr
- reassign
- whitespace
- copyloopvar

enable-all: false
disable-all: true
Expand Down
1 change: 0 additions & 1 deletion cmd/get/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ func printComponent(components []*rt.Component, slug string) {
got := []*rt.Component{}

for _, c := range components {
c := c
if strings.EqualFold(slug, c.Name) {
got = append(got, c)
}
Expand Down
3 changes: 1 addition & 2 deletions cmd/list/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var cmdListServer = &cobra.Command{
PaginationParams{
Limit: flagsListServer.limit,
Page: flagsListServer.page,
Preload: false,
Preload: true,
OrderBy: "",
},
}
Expand Down Expand Up @@ -94,7 +94,6 @@ var cmdListServer = &cobra.Command{

rtServers := make([]*rt.Server, 0, len(servers))
for _, s := range servers {
s := s
rtServers = append(rtServers, rfleetdb.ConvertServer(&s))
}

Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ require (
)

require (

github.com/alessio/shellescape v1.4.2 // indirect
github.com/banzaicloud/logrus-runtime-formatter v0.0.0-20190729070250-5ae5475bae5e // indirect
github.com/beorn7/perks v1.0.1 // indirect
Expand Down

0 comments on commit bfedd9d

Please sign in to comment.