mirror of
https://github.com/OpenNebula/one.git
synced 2025-04-01 06:50:25 +03:00
Feature #5247: Add wait loop for image registering on wild VM import
(cherry picked from commit 5f5bc646edb660b44e0c4d7d19318a8c56c84e1b)
This commit is contained in:
parent
5fd66eff8f
commit
f1fbc5690a
@ -294,6 +294,16 @@ class Template
|
||||
break
|
||||
end
|
||||
|
||||
# Monitor image, we need READY state
|
||||
one_i.info
|
||||
start_time = Time.now
|
||||
|
||||
while one_i.state_str != "READY" and Time.now - start_time < 300
|
||||
sleep 1
|
||||
one_i.info
|
||||
end
|
||||
|
||||
|
||||
#Add info for One template
|
||||
one_i.info
|
||||
disk_info << "DISK=[\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user