mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
Feature #5247: Add wait loop for image registering on wild VM import
(cherry picked from commit 5f5bc646ed)
This commit is contained in:
1 parent
5fd66eff8f
commit
f1fbc5690a
1 file changed
+10
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user