1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #: Add missing break (#1122)

This commit is contained in:
Daniel Clavijo Coca 2021-04-20 13:15:07 -05:00 committed by GitHub
parent b8a9aa9e45
commit 282b94f8f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,11 +301,14 @@ class Mapper
3.times do |t| # wait for device to be ready to be parsed
rc, o, e = Command.execute(cmd, false)
blocklist = o unless rc != 0 || o.empty?
if rc != 0 || o.empty?
OpenNebula.log_error("#{__method__}: #{rc}, #{o}, #{e}") if t == 3
sleep 1
next
end
OpenNebula.log_error("#{__method__}: #{rc}, #{o}, #{e}") if t == 3
sleep 1
next
blocklist = o
break
end
begin