Skip to content

Commit 39f98af

Browse files
authored
Updating power-go-client to 1.0.85 (#487)
1 parent 038f472 commit 39f98af

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

cloud/scope/powervs_clients.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ type IBMPowerVSClient struct {
3939
func NewIBMPowerVSClient(token, account, cloudInstanceID, region, zone string, debug bool) (_ *IBMPowerVSClient, err error) {
4040
client := &IBMPowerVSClient{}
4141
ctx := context.Background()
42-
client.session, err = ibmpisession.New(token, region, debug, TIMEOUT, account, zone)
42+
client.session, err = ibmpisession.New(token, region, debug, account, zone)
4343
if err != nil {
4444
return nil, err
4545
}
4646

4747
client.InstanceClient = instance.NewIBMPIInstanceClient(ctx, client.session, cloudInstanceID)
48-
client.NetworkClient = instance.NewIBMPINetworkClient(client.session, cloudInstanceID)
49-
client.ImageClient = instance.NewIBMPIImageClient(client.session, cloudInstanceID)
48+
client.NetworkClient = instance.NewIBMPINetworkClient(ctx, client.session, cloudInstanceID)
49+
client.ImageClient = instance.NewIBMPIImageClient(ctx, client.session, cloudInstanceID)
5050
return client, nil
5151
}

cloud/scope/powervs_machine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func getImageID(image v1beta1.IBMPowerVSResourceReference, m *PowerVSMachineScop
249249
}
250250

251251
func (m *PowerVSMachineScope) GetImages() (*models.Images, error) {
252-
return m.IBMPowerVSClient.ImageClient.GetAll(m.IBMPowerVSMachine.Spec.ServiceInstanceID)
252+
return m.IBMPowerVSClient.ImageClient.GetAll()
253253
}
254254

255255
func getNetworkID(network v1beta1.IBMPowerVSResourceReference, m *PowerVSMachineScope) (*string, error) {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.16
44

55
require (
66
github.com/IBM-Cloud/bluemix-go v0.0.0-20200921095234-26d1d0148c62
7-
github.com/IBM-Cloud/power-go-client v1.0.83
7+
github.com/IBM-Cloud/power-go-client v1.0.85
88
github.com/IBM/go-sdk-core/v5 v5.9.1
99
github.com/IBM/vpc-go-sdk v0.14.0
1010
github.com/go-logr/logr v0.4.0

go.sum

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03
5757
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
5858
github.com/IBM-Cloud/bluemix-go v0.0.0-20200921095234-26d1d0148c62 h1:8I8Z3mRorZhgT31vXPysZNuVQV7vWR3GSVtmh8xJ9L8=
5959
github.com/IBM-Cloud/bluemix-go v0.0.0-20200921095234-26d1d0148c62/go.mod h1:gPJbH1etcDj7qS/hBRiLuYW9CY0bRcostSKusa51xR0=
60-
github.com/IBM-Cloud/power-go-client v1.0.83 h1:pVJtlefLGr4KO0ekqO2WXlYYGxKuvh8QVjRuUckCHfk=
61-
github.com/IBM-Cloud/power-go-client v1.0.83/go.mod h1:YRBsrY+n1+3xMd6HzfG0VATkXZqOQktK5Yvjx9x6ACc=
60+
github.com/IBM-Cloud/power-go-client v1.0.85 h1:5iiYEPNBgSEgTLXcfxXZmyOSKwQO8YbUJz4hBivYOV4=
61+
github.com/IBM-Cloud/power-go-client v1.0.85/go.mod h1:60o7AE2oDi/0CtoXlQhnCbC3o1fSRgaFCJO6DscmokA=
6262
github.com/IBM/go-sdk-core/v5 v5.7.2/go.mod h1:+YbdhrjCHC84ls4MeBp+Hj4NZCni+tDAc0XQUqRO9Jc=
63+
github.com/IBM/go-sdk-core/v5 v5.8.0/go.mod h1:+YbdhrjCHC84ls4MeBp+Hj4NZCni+tDAc0XQUqRO9Jc=
6364
github.com/IBM/go-sdk-core/v5 v5.9.1 h1:06pXbD9Rgmqqe2HA5YAeQbB4eYRRFgIoOT+Kh3cp1zo=
6465
github.com/IBM/go-sdk-core/v5 v5.9.1/go.mod h1:axE2JrRq79gIJTjKPBwV6gWHswvVptBjbcvvCPIxARM=
6566
github.com/IBM/vpc-go-sdk v0.14.0 h1:2uIhMiNiAJC8XiNkjhiMeMGBJlPU0jqE8KON2fvfSZI=

0 commit comments

Comments
 (0)