mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #5363 from wanyaoqi/bugfix/wyq/fix-postpaid-disk
bugfix: fix disk billing type on guest is postpaid
This commit is contained in:
@@ -861,8 +861,10 @@ func (self *SManagedVirtualizedGuestDriver) OnGuestDeployTaskDataReceived(ctx co
|
||||
disk.AccessPath = diskInfo[i].Path
|
||||
|
||||
if !recycle {
|
||||
disk.BillingType = diskInfo[i].BillingType
|
||||
disk.ExpiredAt = diskInfo[i].ExpiredAt
|
||||
if len(diskInfo[i].BillingType) > 0 {
|
||||
disk.BillingType = diskInfo[i].BillingType
|
||||
disk.ExpiredAt = diskInfo[i].ExpiredAt
|
||||
}
|
||||
}
|
||||
|
||||
if len(diskInfo[i].StorageExternalId) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user