Skip to content

Commit 2657a53

Browse files
committed
Allow region filtering
1 parent 58891ba commit 2657a53

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ func (s *ScalewayAPI) GetServers(all bool, limit int) (*[]ScalewayServer, error)
12081208
}
12091209
)
12101210

1211-
serverChan := make(chan ScalewayServers, 2)
1211+
serverChan := make(chan ScalewayServers, len(apis))
12121212
for _, api := range apis {
12131213
g.Go(s.fetchServers(api, query, serverChan))
12141214
}

pkg/cli/cmd_ps.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ var cmdPs = &Command{
3535
$ scw ps -f arch=ARCH
3636
$ scw ps -f server-type=COMMERCIALTYPE
3737
$ scw ps -f "state=booted image=docker tags=prod"
38+
$ scw ps -f zone=ams1
3839
`,
3940
}
4041

0 commit comments

Comments
 (0)