mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: remove apiversion param from session
This commit is contained in:
@@ -329,7 +329,7 @@ type SCloudproviderDelegate struct {
|
||||
}
|
||||
|
||||
func (self *SCloudprovider) GetDelegate() (*SCloudproviderDelegate, error) {
|
||||
s := auth.GetAdminSession(context.Background(), options.Options.Region, "")
|
||||
s := auth.GetAdminSession(context.Background(), options.Options.Region)
|
||||
result, err := modules.Cloudproviders.Get(s, self.Id, nil)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "modules.Cloudproviders.Get")
|
||||
|
||||
Reference in New Issue
Block a user