1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Add custom image type to the OCCI save_as

This commit is contained in:
Daniel Molina 2010-12-09 17:30:49 +01:00
parent a51296a3ce
commit 1288fff17d

View File

@ -254,7 +254,11 @@ class OCCIServer < CloudServer
# Create a new Image to save the disk
template = "NAME=\"#{image_name}\"\n"
template << "TYPE=OS\n"
if image_type
template << "TYPE=\"#{image_type}\"\n"
else
template << "TYPE=\"OS\"\n"
end
image = Image.new(Image.build_xml, one_client)