mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-23 17:33:56 +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:
parent
394e45f7b2
commit
e5ec947c95
@ -176,8 +176,8 @@ class OnehostParse < CommandParse
|
||||
COMMANDS_HELP=<<-EOT
|
||||
Commands:
|
||||
|
||||
* add (Adds a new machine to the pool)
|
||||
onehost add <hostname> <im_mad> <vmm_mad> <tm_mad>
|
||||
* create (Adds a new machine to the pool)
|
||||
onehost create <hostname> <im_mad> <vmm_mad> <tm_mad>
|
||||
|
||||
* show (Gets info from a host)
|
||||
onehost show <host_id>
|
||||
@ -232,8 +232,8 @@ result=[false, "Unknown error"]
|
||||
command=ARGV.shift
|
||||
|
||||
case command
|
||||
when "add"
|
||||
check_parameters("add", 4)
|
||||
when "add", "create"
|
||||
check_parameters("create", 4)
|
||||
result=host.allocate(*[ARGV[0], ARGV[1], ARGV[2], ARGV[3], "true"])
|
||||
|
||||
when "show"
|
||||
|
@ -291,8 +291,8 @@ class OnevmParse < CommandParse
|
||||
COMMANDS_HELP=<<-EOT
|
||||
Commands:
|
||||
|
||||
* submit (Submits a new virtual machine, adding it to the ONE VM pool)
|
||||
onevm submit <template>
|
||||
* create (Submits a new virtual machine, adding it to the ONE VM pool)
|
||||
onevm create <template>
|
||||
|
||||
template is a file name where the VM description is located
|
||||
|
||||
@ -380,8 +380,8 @@ result=[false, "Unknown error"]
|
||||
command=ARGV.shift
|
||||
|
||||
case command
|
||||
when "submit"
|
||||
check_parameters("submit", 1)
|
||||
when "submit", "create"
|
||||
check_parameters("create", 1)
|
||||
result=vm.allocate(*ARGV)
|
||||
if result[0]
|
||||
puts "ID: " + result[1].to_s if ops[:verbose]
|
||||
|
Loading…
Reference in New Issue
Block a user