Skip to content

Commit

Permalink
debug: create client with fresh sts token
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayushi Sharma committed Dec 9, 2024
1 parent 80ce978 commit 8f81cbf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plugins/providers/maxcompute/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,13 +412,13 @@ func (p *provider) getRestClient(pc *domain.ProviderConfig) (*maxcompute.Client,

func (p *provider) getOdpsClient(pc *domain.ProviderConfig, overrideRAMRole string) (*odps.Odps, error) {
usingRAMRole := overrideRAMRole != ""
if usingRAMRole {
if client, ok := p.odpsClients[overrideRAMRole]; ok {
return client, nil
}
} else if client, ok := p.odpsClients[pc.URN]; ok {
return client, nil
}
// if usingRAMRole {
// if client, ok := p.odpsClients[overrideRAMRole]; ok {
// return client, nil
// }
// } else if client, ok := p.odpsClients[pc.URN]; ok {
// return client, nil
// }

creds, err := p.getCreds(pc)
if err != nil {
Expand Down

0 comments on commit 8f81cbf

Please sign in to comment.