Skip to content

Commit 17ae6fb

Browse files
Merge pull request #80 from Karthik-K-N/reuse-authenticator
MULTIARCH-5055: UPSTREAM: <carry>: Reuse authenticator in resource controller options
2 parents 35bf78f + 6256ccf commit 17ae6fb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ibm/ibm_powervs_client.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ var newPowerVSSdkClient = func(provider *Provider) (Client, error) {
120120
client := &powerVSClient{}
121121
if provider.PowerVSCloudInstanceID == "" {
122122
rcOptions := &rc.ResourceControllerV2Options{
123-
Authenticator: &core.IamAuthenticator{
124-
ApiKey: credential,
125-
},
123+
Authenticator: authenticator,
126124
}
127125
// If the resource controller endpoint override was specified in the config, update the URL
128126
if provider.RcEndpointOverride != "" {

0 commit comments

Comments
 (0)