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

(cherry picked from commit e4c738ca27)
This commit is contained in:
Alejandro Huertas Herrero authored and Ruben S. Montero committed 2020-03-12 10:06:53 +01:00
1 parent 756b8d630b
commit fc2eb18aa3
1 file changed
+4
+4
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)