diff --git a/src/cli/onevm b/src/cli/onevm index fe65eb59f9..39ca4bc5d8 100755 --- a/src/cli/onevm +++ b/src/cli/onevm @@ -346,6 +346,9 @@ Commands: * saveas (Set the specified vm's disk to be saved in a new image (image_name) when the vm shutdowns) onevm saveas + + (Set a different type for the new Image) + onevm saveas -t/--type * delete (Deletes a VM from the pool and DB) onevm delete @@ -387,6 +390,11 @@ EOT table.print_help end + def special_options(opts, options) + opts.on_tail("-t", "--type", "Image type") do |o| + options[:type]=o + end + end end diff --git a/src/cloud/occi/lib/VirtualMachineOCCI.rb b/src/cloud/occi/lib/VirtualMachineOCCI.rb index 3990bdee47..1568f9ea7c 100755 --- a/src/cloud/occi/lib/VirtualMachineOCCI.rb +++ b/src/cloud/occi/lib/VirtualMachineOCCI.rb @@ -33,9 +33,6 @@ class VirtualMachineOCCI < VirtualMachine <%= disk['TYPE'] %> <%= disk['TARGET'] %> - <% if disk['SAVE_AS'] %> - <%= disk['SAVE_AS'] %> - <% end %> <% end %> <% end %>