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:
parent
a51296a3ce
commit
1288fff17d
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user