Skip to content
Snippets Groups Projects
Commit 13948c87 authored by ioito's avatar ioito
Browse files

fix(region): aliyun bucket access url

parent b2867062
No related branches found
No related tags found
No related merge requests found
......@@ -102,30 +102,6 @@ func (b *SBucket) GetAccessUrls() []cloudprovider.SBucketAccessUrl {
Description: "IntranetEndpoint",
},
}
osscli, err := b.region.GetOssClient()
if err != nil {
return ret
}
info, err := osscli.GetBucketInfo(b.Name)
if err != nil {
return ret
}
ret = []cloudprovider.SBucketAccessUrl{}
if len(info.BucketInfo.ExtranetEndpoint) > 0 {
ret = append(ret, cloudprovider.SBucketAccessUrl{
Url: info.BucketInfo.ExtranetEndpoint,
Description: "ExtranetEndpoint",
Primary: true,
})
}
if len(info.BucketInfo.IntranetEndpoint) > 0 {
ret = append(ret, cloudprovider.SBucketAccessUrl{
Url: info.BucketInfo.IntranetEndpoint,
Description: "IntranetEndpoint",
Primary: true,
})
}
return ret
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment