Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client update #584

Merged
merged 2 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/AlecAivazis/survey/v2 v2.3.7
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2
github.com/adrg/xdg v0.5.0
github.com/appgate/sdp-api-client-go v1.2.4
github.com/appgate/sdp-api-client-go v1.2.5
github.com/billgraziano/dpapi v0.5.0
github.com/cenkalti/backoff/v4 v4.3.0
github.com/cheynewallace/tabby v1.1.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ github.com/alessio/shellescape v1.4.2 h1:MHPfaU+ddJ0/bYWpgIeUnQUqKrlJ1S7BfEYPM4u
github.com/alessio/shellescape v1.4.2/go.mod h1:PZAiSCk0LJaZkiCSkPv8qIobYglO3FPpyFjDCtHLS30=
github.com/appgate/sdp-api-client-go v1.2.4 h1:JqgFuNx4znQscEfCfI9iX/4/QzsQMTewiZaZtIqT5fw=
github.com/appgate/sdp-api-client-go v1.2.4/go.mod h1:aPyFeh0fein8VSxFPZpEkeMi8m9dbN+I1RVO4QrONyk=
github.com/appgate/sdp-api-client-go v1.2.5 h1:eVWyqwXGjAAhVlOY1BM/SqcDHC5BCnut0Tb+plVKHQY=
github.com/appgate/sdp-api-client-go v1.2.5/go.mod h1:aPyFeh0fein8VSxFPZpEkeMi8m9dbN+I1RVO4QrONyk=
github.com/billgraziano/dpapi v0.5.0 h1:pcxA17vyjbDqYuxCFZbgL9tYIk2xgbRZjRaIbATwh+8=
github.com/billgraziano/dpapi v0.5.0/go.mod h1:lmEcZjRfLCSbUTsRu8V2ti6Q17MvnKn3N9gQqzDdTh0=
github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8=
Expand Down
4 changes: 2 additions & 2 deletions pkg/appliance/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func (a *Appliance) UpgradeSwitchPartition(ctx context.Context, id string) error

func (a *Appliance) ApplianceSwitchPartition(ctx context.Context, id string) error {
req := a.APIClient.ApplianceApi.AppliancesIdSwitchPartitionPost(ctx, id).Authorization(a.Token)
_, err := req.Execute()
_, _, err := req.Execute()
if err != nil {
return err
}
Expand Down Expand Up @@ -367,7 +367,7 @@ func (a *Appliance) ForceDisableControllers(ctx context.Context, disable []opena
}

func (a *Appliance) RepartitionIPAllocations(ctx context.Context) (string, error) {
resp, err := a.APIClient.AppliancesApi.AppliancesRepartitionIpAllocationsPost(ctx).Authorization(a.Token).Execute()
_, resp, err := a.APIClient.AppliancesApi.AppliancesRepartitionIpAllocationsPost(ctx).Authorization(a.Token).Execute()
if err != nil {
return "", api.HTTPErrorResponse(resp, err)
}
Expand Down
Loading