mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-06 07:04:45 +09:00
F OpenNebula/one-form#62: Sunstone integration with OpenNebula Form (#4026)
This commit is contained in:
1 parent
df02fc6b24
commit
52ccc2d67e
125 files changed
+6448
-299
No files matched your search
@@ -83,7 +83,7 @@ CommandParser::CmdParser.new(ARGV) do
|
||||
:large => '--ids ids',
|
||||
:short => '-i ids',
|
||||
:description => 'Hosts IDs to remove from the provision',
|
||||
:format => Integer
|
||||
:format => Array
|
||||
}
|
||||
|
||||
AMOUNT = {
|
||||
@@ -107,7 +107,7 @@ CommandParser::CmdParser.new(ARGV) do
|
||||
:short => '-i ips',
|
||||
:large => '--ips ips',
|
||||
:description => 'IP addresses to add as hosts. Only valid for on-prem providers',
|
||||
:format => Integer
|
||||
:format => Array
|
||||
}
|
||||
|
||||
PROVIDER_ID = {
|
||||
@@ -391,8 +391,7 @@ CommandParser::CmdParser.new(ARGV) do
|
||||
if amount.nil? && host_ips.nil?
|
||||
amount = 1
|
||||
end
|
||||
|
||||
nodes = amount || [host_ips]
|
||||
nodes = amount || host_ips
|
||||
response = client.scale_provision(provision_id, 'up', nodes)
|
||||
|
||||
return [response[:err_code], response[:message]] \
|
||||
@@ -442,7 +441,7 @@ CommandParser::CmdParser.new(ARGV) do
|
||||
amount = 1
|
||||
end
|
||||
|
||||
nodes = amount || [host_ids]
|
||||
nodes = amount || host_ids
|
||||
response = client.scale_provision(provision_id, 'down', nodes, :force => force)
|
||||
|
||||
return [response[:err_code], response[:message]] \
|
||||
|
||||
Reference in new issue
Block a user