Skip to content

Commit

Permalink
Change resources based on swagger change
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Kita committed Nov 20, 2024
1 parent c177b2a commit 89122c4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.22.5
require (
github.com/IBM-Cloud/bluemix-go v0.0.0-20240926024252-81b3928fd062
github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20240725064144-454a2ae23113
github.com/IBM-Cloud/power-go-client v1.9.0-beta5
github.com/IBM-Cloud/power-go-client v1.9.0-beta8
github.com/IBM/apigateway-go-sdk v0.0.0-20210714141226-a5d5d49caaca
github.com/IBM/appconfiguration-go-admin-sdk v0.3.0
github.com/IBM/appid-management-go-sdk v0.0.0-20210908164609-dd0e0eaf732f
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ github.com/IBM-Cloud/bluemix-go v0.0.0-20240926024252-81b3928fd062/go.mod h1:/7h
github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20240725064144-454a2ae23113 h1:f2Erqfea1dKpaTFagTJM6W/wnD3JGq/Vn9URh8nuRwk=
github.com/IBM-Cloud/container-services-go-sdk v0.0.0-20240725064144-454a2ae23113/go.mod h1:xUQL9SGAjoZFd4GNjrjjtEpjpkgU7RFXRyHesbKTjiY=
github.com/IBM-Cloud/ibm-cloud-cli-sdk v0.5.3/go.mod h1:RiUvKuHKTBmBApDMUQzBL14pQUGKcx/IioKQPIcRQjs=
github.com/IBM-Cloud/power-go-client v1.9.0-beta5 h1:W2mnJxwuS+pP8Dsu3HtEqg+csx7z8MQuFfiB6xee91o=
github.com/IBM-Cloud/power-go-client v1.9.0-beta5/go.mod h1:UDyXeIKEp6r7yWUXYu3r0ZnFSlNZ2YeQTHwM2Tmlgv0=
github.com/IBM-Cloud/power-go-client v1.9.0-beta8 h1:wLRzZw/jOg8mGfGFCXutKrymZHwGaih/EpZrHTSp8Ko=
github.com/IBM-Cloud/power-go-client v1.9.0-beta8/go.mod h1:UDyXeIKEp6r7yWUXYu3r0ZnFSlNZ2YeQTHwM2Tmlgv0=
github.com/IBM-Cloud/softlayer-go v1.0.5-tf h1:koUAyF9b6X78lLLruGYPSOmrfY2YcGYKOj/Ug9nbKNw=
github.com/IBM-Cloud/softlayer-go v1.0.5-tf/go.mod h1:6HepcfAXROz0Rf63krk5hPZyHT6qyx2MNvYyHof7ik4=
github.com/IBM/apigateway-go-sdk v0.0.0-20210714141226-a5d5d49caaca h1:crniVcf+YcmgF03NmmfonXwSQ73oJF+IohFYBwknMxs=
Expand Down
2 changes: 1 addition & 1 deletion ibm/service/power/resource_ibm_pi_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ func resourceIBMPIInstanceUpdate(ctx context.Context, d *schema.ResourceData, me
Description: description,
Serial: &serial,
}
err := vsnClient.PVMInstanceAttachVSN(instanceID, addBody)
_, err := vsnClient.PVMInstanceAttachVSN(instanceID, addBody)
if err != nil {
return diag.FromErr(err)
}
Expand Down
4 changes: 2 additions & 2 deletions ibm/service/power/resource_ibm_pi_virtual_serial_number.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func resourceIBMPIVirtualSerialNumberCreate(ctx context.Context, d *schema.Resou
if v, ok := d.GetOk(Arg_Description); ok {
addBody.Description = v.(string)
}
err = client.PVMInstanceAttachVSN(pvmInstanceIdArg, addBody)
_, err = client.PVMInstanceAttachVSN(pvmInstanceIdArg, addBody)
if err != nil {
return diag.FromErr(err)
}
Expand Down Expand Up @@ -335,7 +335,7 @@ func resourceIBMPIVirtualSerialNumberUpdate(ctx context.Context, d *schema.Resou
description := v.(string)
addBody.Description = description
}
err = client.PVMInstanceAttachVSN(newIdString, addBody)
_, err = client.PVMInstanceAttachVSN(newIdString, addBody)
if err != nil {
return diag.FromErr(err)
}
Expand Down

0 comments on commit 89122c4

Please sign in to comment.