From e4c738ca2773e67c98e52276dcbd71ea77d5d494 Mon Sep 17 00:00:00 2001 From: Alejandro Huertas Herrero Date: Thu, 12 Mar 2020 10:02:51 +0100 Subject: [PATCH] B #4328: fsck quotas skip vnet with no ID (#4339) --- src/onedb/fsck/quotas.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/onedb/fsck/quotas.rb b/src/onedb/fsck/quotas.rb index 88a7733414..9754276267 100644 --- a/src/onedb/fsck/quotas.rb +++ b/src/onedb/fsck/quotas.rb @@ -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)