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

Bug #1318: Use new option names accordingly

(cherry picked from commit 916777f49c1b5fb0dcac7bfe7db2c7954222ab98)
This commit is contained in:
Carlos Martín 2012-07-04 11:48:02 +02:00
parent d3834b128d
commit baa8a64e42
2 changed files with 4 additions and 4 deletions

View File

@ -89,7 +89,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
EOT
command :create, create_desc, :hostname, :options=>CREAT_OPTIONS do
if options[:im].nil? or options[:vmm].nil? or options[:vnm].nil?
if options[:im].nil? or options[:vm].nil? or options[:net].nil?
STDERR.puts "Drivers are mandatory to create a host:"
STDERR.puts "\t -i information driver"
STDERR.puts "\t -v hypervisor driver"
@ -102,8 +102,8 @@ cmd=CommandParser::CmdParser.new(ARGV) do
helper.create_resource(options) do |host|
host.allocate(args[0],
options[:im],
options[:vmm],
options[:vnm],
options[:vm],
options[:net],
cid)
end
end

View File

@ -47,7 +47,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
list_options << OpenNebulaHelper::NUMERIC
READ_FILE={
:name => "read-file",
:name => "read_file",
:short => "-r",
:large => "--read-file",
:description => "Read password from file"