mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 05:06:14 +09:00
1 parent
7f606c15c4
commit
ea7d313169
1 file changed
+7
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user