1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-09-22 21:44:17 +03:00

onehost add and onevm submit commands are changed to create (#51)

git-svn-id: http://svn.opennebula.org/one/trunk@251 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Javier Fontán Muiños
2008-11-19 11:43:02 +00:00
parent 394e45f7b2
commit e5ec947c95
2 changed files with 8 additions and 8 deletions

View File

@@ -176,8 +176,8 @@ class OnehostParse < CommandParse
COMMANDS_HELP=<<-EOT COMMANDS_HELP=<<-EOT
Commands: Commands:
* add (Adds a new machine to the pool) * create (Adds a new machine to the pool)
onehost add <hostname> <im_mad> <vmm_mad> <tm_mad> onehost create <hostname> <im_mad> <vmm_mad> <tm_mad>
* show (Gets info from a host) * show (Gets info from a host)
onehost show <host_id> onehost show <host_id>
@@ -232,8 +232,8 @@ result=[false, "Unknown error"]
command=ARGV.shift command=ARGV.shift
case command case command
when "add" when "add", "create"
check_parameters("add", 4) check_parameters("create", 4)
result=host.allocate(*[ARGV[0], ARGV[1], ARGV[2], ARGV[3], "true"]) result=host.allocate(*[ARGV[0], ARGV[1], ARGV[2], ARGV[3], "true"])
when "show" when "show"

View File

@@ -291,8 +291,8 @@ class OnevmParse < CommandParse
COMMANDS_HELP=<<-EOT COMMANDS_HELP=<<-EOT
Commands: Commands:
* submit (Submits a new virtual machine, adding it to the ONE VM pool) * create (Submits a new virtual machine, adding it to the ONE VM pool)
onevm submit <template> onevm create <template>
template is a file name where the VM description is located template is a file name where the VM description is located
@@ -380,8 +380,8 @@ result=[false, "Unknown error"]
command=ARGV.shift command=ARGV.shift
case command case command
when "submit" when "submit", "create"
check_parameters("submit", 1) check_parameters("create", 1)
result=vm.allocate(*ARGV) result=vm.allocate(*ARGV)
if result[0] if result[0]
puts "ID: " + result[1].to_s if ops[:verbose] puts "ID: " + result[1].to_s if ops[:verbose]