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

bug #1301: onevm create accepts non-valid options

This commit is contained in:
Javi Fontan 2012-09-17 15:57:23 +02:00
parent c17f7ac307
commit f7166cd019

View File

@ -99,8 +99,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
See 'onetemplate create' and 'onetemplate instantiate'
EOT
command :create, create_desc, :file,
:options=>[OneVMHelper::MULTIPLE]+OpenNebulaHelper::OPTIONS do
command :create, create_desc, :file, :options=>[OneVMHelper::MULTIPLE] do
number = options[:multiple] || 1
exit_code=nil