fix disk billing type on guest is postpaid

This commit is contained in:
wanyaoqi
2020-03-05 20:33:19 +08:00
parent b4bb5d902f
commit 608be69260
+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 {