mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
M #: Add missing break (#1122)
(cherry picked from commit 282b94f8f77bba90a1eb1453da9118052d7dd8cc) (cherry picked from commit ce2fb395e42f48044cb9801f2dc8f43ae097812f)
This commit is contained in:
parent
acbd5d1472
commit
943005aa9d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user