1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

B #4328: fsck quotas skip vnet with no ID (#4339)

This commit is contained in:
Alejandro Huertas Herrero 2020-03-12 10:02:51 +01:00 committed by GitHub
parent 9cfb90d1b6
commit e4c738ca27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -485,6 +485,10 @@ module OneDBFsck
end
net_quota.xpath('NETWORK').each do |net_elem|
# The ID should exists, just in case it's missing it doesn't make
# sense to check this LEASES
next unless net_elem.at_xpath('ID')
vnet_id = net_elem.at_xpath('ID').text
leases_used = vnet_usage.delete(vnet_id)