M #: Add missing break (#1122)

(cherry picked from commit 282b94f8f7)
This commit is contained in:
Daniel Clavijo Coca authored and Ruben S. Montero committed 2021-04-20 20:17:12 +02:00
1 parent 7f606c15c4
commit ea7d313169
1 file changed
+7 -4
+7 -4
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