mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
F #3206 Manage nils macs in fsck
This commit is contained in:
parent
8b96dd6142
commit
b11c8a5566
@ -527,7 +527,7 @@ EOT
|
||||
end
|
||||
|
||||
def mac_s_to_i(mac)
|
||||
return nil if mac.empty?
|
||||
return nil if mac.nil? || mac.empty?
|
||||
return mac.split(":").map {|e|
|
||||
e.to_i(16).to_s(16).rjust(2,"0")}.join("").to_i(16)
|
||||
end
|
||||
|
@ -391,6 +391,8 @@ module OneDBFsck
|
||||
end
|
||||
|
||||
counter_ar.each do |mac, counter_lease|
|
||||
next if mac.nil?
|
||||
|
||||
index = ((mac & 0xFFFFFFFF) - (first_mac & 0xFFFFFFFF) ) % 0x100000000
|
||||
|
||||
new_lease_obj = ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user