fix(region): huawei disk tags

This commit is contained in:
Qu Xuan
2021-06-04 14:36:20 +08:00
parent fb7b322256
commit 7b6f28eefa
2 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ type VolumeImageMetadata struct {
type SDisk struct {
storage *SStorage
multicloud.SDisk
multicloud.HuaweiTags
multicloud.HuaweiDiskTags
details *SResourceDetail
ID string `json:"id"`
+16
View File
@@ -275,6 +275,22 @@ func (self *HuaweiTags) SetTags(tags map[string]string, replace bool) error {
return errors.Wrap(cloudprovider.ErrNotImplemented, "SetTags")
}
type HuaweiDiskTags struct {
Tags map[string]string
}
func (self *HuaweiDiskTags) GetTags() (map[string]string, error) {
return self.Tags, nil
}
func (self *HuaweiDiskTags) GetSysTags() map[string]string {
return nil
}
func (self *HuaweiDiskTags) SetTags(tags map[string]string, replace bool) error {
return errors.Wrap(cloudprovider.ErrNotImplemented, "SetTags")
}
type OpenStackTags struct {
Metadata map[string]string
}