diff --git a/pkg/multicloud/huawei/disk.go b/pkg/multicloud/huawei/disk.go index 29c3cad97e..7e9f2f65ca 100644 --- a/pkg/multicloud/huawei/disk.go +++ b/pkg/multicloud/huawei/disk.go @@ -91,7 +91,7 @@ type VolumeImageMetadata struct { type SDisk struct { storage *SStorage multicloud.SDisk - multicloud.HuaweiTags + multicloud.HuaweiDiskTags details *SResourceDetail ID string `json:"id"` diff --git a/pkg/multicloud/tag_base.go b/pkg/multicloud/tag_base.go index e9b3efd718..d0374f3d6f 100644 --- a/pkg/multicloud/tag_base.go +++ b/pkg/multicloud/tag_base.go @@ -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 }