mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): huawei disk tags
This commit is contained in:
@@ -91,7 +91,7 @@ type VolumeImageMetadata struct {
|
||||
type SDisk struct {
|
||||
storage *SStorage
|
||||
multicloud.SDisk
|
||||
multicloud.HuaweiTags
|
||||
multicloud.HuaweiDiskTags
|
||||
details *SResourceDetail
|
||||
|
||||
ID string `json:"id"`
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user