Skip to content

Commit 15e23b9

Browse files
authored
Merge pull request #320 from vasubabu/remove-excludes
Bump metal-go from v0.13.0 to v0.16.0
2 parents 1f6fa48 + 3aa531c commit 15e23b9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/equinix/metal-cli
33
go 1.19
44

55
require (
6-
github.com/equinix-labs/metal-go v0.13.0
6+
github.com/equinix-labs/metal-go v0.16.0
77
github.com/manifoldco/promptui v0.9.0
88
github.com/olekukonko/tablewriter v0.0.5
99
github.com/packethost/packngo v0.29.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1m
6262
github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po=
6363
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
6464
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
65-
github.com/equinix-labs/metal-go v0.13.0 h1:SqMOiz0D81Jv4i1bbkImT1baQ/HA8WQ8QDnwuVuKGVQ=
66-
github.com/equinix-labs/metal-go v0.13.0/go.mod h1:SmxCklxW+KjmBLVMdEXgtFO5gD5/b4N0VxcNgUYbOH4=
65+
github.com/equinix-labs/metal-go v0.16.0 h1:4YmGx9SRFkDtHiEqRsSjlgJDztV6NHqH1eeaOZcK7d4=
66+
github.com/equinix-labs/metal-go v0.16.0/go.mod h1:SmxCklxW+KjmBLVMdEXgtFO5gD5/b4N0VxcNgUYbOH4=
6767
github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE=
6868
github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=
6969
github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw=

internal/organizations/payment.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (c *Client) PaymentMethods() *cobra.Command {
4141
RunE: func(cmd *cobra.Command, args []string) error {
4242
cmd.SilenceUsage = true
4343

44-
paymentMethodsList, _, err := c.Service.FindOrganizationPaymentMethods(context.Background(), organizationID).Include(c.Servicer.Includes(nil)).Exclude(c.Servicer.Excludes(nil)).Execute()
44+
paymentMethodsList, _, err := c.Service.FindOrganizationPaymentMethods(context.Background(), organizationID).Include(nil).Execute()
4545
if err != nil {
4646
return fmt.Errorf("could not list Payment Methods: %w", err)
4747
}

internal/ssh/retrieve.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (c *Client) Retrieve() *cobra.Command {
5454
if sshKeyID == "" {
5555
projectID, _ := cmd.LocalFlags().GetString("project-id")
5656
listFn := func() (*metal.SSHKeyList, *http.Response, error) {
57-
request := c.Service.FindSSHKeys(context.Background()).Include(nil).Exclude(nil)
57+
request := c.Service.FindSSHKeys(context.Background()).Include(nil)
5858
filters := c.Servicer.Filters()
5959
if filters["search"] != "" {
6060
request = request.Search(filters["search"])
@@ -85,7 +85,7 @@ func (c *Client) Retrieve() *cobra.Command {
8585

8686
return c.Out.Output(sshKeysList, header, &data)
8787
} else {
88-
sshKeyId, _, err := c.Service.FindSSHKeyById(context.Background(), sshKeyID).Include(nil).Exclude(nil).Execute()
88+
sshKeyId, _, err := c.Service.FindSSHKeyById(context.Background(), sshKeyID).Include(nil).Execute()
8989
if err != nil {
9090
return fmt.Errorf("Could not get SSH Key: %w", err)
9191
}

0 commit comments

Comments
 (0)