1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

Feature #5247: Add wait loop for image registering on wild VM import

This commit is contained in:
Tino Vazquez 2017-09-11 19:09:58 +02:00
parent b80bc4796a
commit 5f5bc646ed

View File

@ -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"