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

Bug #4431: Mended CLI to create vCenter datablocks

This commit is contained in:
Tino Vazquez 2016-05-23 19:29:00 +02:00
parent 01324189a6
commit f395c4c602

View File

@ -102,16 +102,19 @@ class OneImageHelper < OpenNebulaHelper::OneHelper
{
:name => "disk_type",
:large => "--disk_type disk_type",
:description => "Type of the image (BLOCK, CDROM, RBD or FILE)",
:format => String,
:proc => lambda do |o, options|
type=o.strip.upcase
if %w{BLOCK CDROM FILE RBD}.include? type
[0, type]
else
[-1, "Disk type must be BLOCK, CDROM, RBD or FILE"]
end
end
:description => "Type of the image \n"<<
" "*31<<"for KVM: BLOCK, CDROM, RBD or FILE \n"<<
" "*31<<"for vCenter: THIN, TICHK, ZEOREDTHICK " <<
"(for others, check the documentation) ",
:format => String
},
{
:name => "adapter_type",
:large => "--adapter_type adapter_type",
:description => "Controller that will handle this image in " <<
"vCenter (lsiLogic, ide, busLogic). For other "<<
"values check the documentation",
:format => String
},
{
:name => "source",