mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-10 01:17:40 +03:00
Save_as changes in OCCI
This commit is contained in:
parent
25eb299953
commit
96babaf8ff
@ -14,12 +14,6 @@ NAME = "<%= @vm_info['NAME'] %>"
|
||||
<% @vm_info.each('DISK') do |disk| %>
|
||||
<% if disk['STORAGE'] && disk.attr('STORAGE','href') %>
|
||||
DISK = [ IMAGE_ID = <%= disk.attr('STORAGE','href').split('/').last %>
|
||||
<% if disk['OVERWRITE'] %>
|
||||
,OVERWRITE = "yes"
|
||||
<% end %>
|
||||
<% if disk['SAVE_AS'] %>
|
||||
,SAVE_AS = "<%= disk['SAVE_AS'] %>"
|
||||
<% end %>
|
||||
]
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
@ -14,12 +14,6 @@ NAME = "<%= @vm_info['NAME'] %>"
|
||||
<% @vm_info.each('DISK') do |disk| %>
|
||||
<% if disk['STORAGE'] && disk.attr('STORAGE','href') %>
|
||||
DISK = [ IMAGE_ID = <%= disk.attr('STORAGE','href').split('/').last %>
|
||||
<% if disk['OVERWRITE'] %>
|
||||
,OVERWRITE = "yes"
|
||||
<% end %>
|
||||
<% if disk['SAVE_AS'] %>
|
||||
,SAVE_AS = "<%= disk['SAVE_AS'] %>"
|
||||
<% end %>
|
||||
]
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
@ -14,12 +14,6 @@ NAME = "<%= @vm_info['NAME'] %>"
|
||||
<% @vm_info.each('DISK') do |disk| %>
|
||||
<% if disk['STORAGE'] && disk.attr('STORAGE','href') %>
|
||||
DISK = [ IMAGE_ID = <%= disk.attr('STORAGE','href').split('/').last %>
|
||||
<% if disk['OVERWRITE'] %>
|
||||
,OVERWRITE = "yes"
|
||||
<% end %>
|
||||
<% if disk['SAVE_AS'] %>
|
||||
,SAVE_AS = "<%= disk['SAVE_AS'] %>"
|
||||
<% end %>
|
||||
]
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
@ -33,9 +33,6 @@ class VirtualMachineOCCI < VirtualMachine
|
||||
<STORAGE href="<%= base_url %>/storage/<%= disk['IMAGE_ID'] %>" name="<%= disk['IMAGE'] %>"/>
|
||||
<TYPE><%= disk['TYPE'] %></TYPE>
|
||||
<TARGET><%= disk['TARGET'] %></TARGET>
|
||||
<% if disk['CLONE']=='NO' %>
|
||||
<OVERWRITE/>
|
||||
<% end %>
|
||||
<% if disk['SAVE_AS'] %>
|
||||
<SAVE_AS><%= disk['SAVE_AS'] %></SAVE_AS>
|
||||
<% end %>
|
||||
|
Loading…
Reference in New Issue
Block a user