mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #184 in YUNIONIO/onecloud from ~QUXUAN/onecloud:hotfix/qx-disk-sync to release/2.1.0
* commit 'b7be94f2d265c93df941fa98a35a15ca5b6f8154': 同步云盘名称
This commit is contained in:
@@ -122,6 +122,9 @@ func (self *SDisk) Resize(size int64) error {
|
||||
}
|
||||
|
||||
func (self *SDisk) GetName() string {
|
||||
if len(self.DiskName) > 0 {
|
||||
return self.DiskName
|
||||
}
|
||||
return self.DiskId
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user