Fixes bug by chaning the scope of error

This commit is contained in:
Jaime Melis committed 2017-11-13 11:09:42 +01:00
1 parent e167aaad84
commit d7bb9c2829
1 file changed
+1 -2
+1 -2
View File
@@ -170,9 +170,8 @@ module OneDBFsck
counter_no_ar = counters[:vnet][row[:oid]][:no_ar_leases]
error = false
counters[:vnet][row[:oid]][:ar_leases].each do |ar_id, counter_ar|
error = false
net_ar = doc.root.at_xpath("AR_POOL/AR[AR_ID=#{ar_id}]")
if (net_ar.nil?)