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

M #: Add missing break (#1122)

(cherry picked from commit 282b94f8f77bba90a1eb1453da9118052d7dd8cc)
This commit is contained in:
Daniel Clavijo Coca 2021-04-20 13:15:07 -05:00 committed by Ruben S. Montero
parent 616ba11956
commit 2e7b2231db
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

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