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:
yunion-ci-robot
2020-03-06 12:29:50 +08:00
committed by GitHub
+4 -2
View File
@@ -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 {