mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
feature #1722: Use the right units for host update. Fix enforce in onevm command
This commit is contained in:
1 parent
126af25bb7
commit
19e90ec530
3 files changed
+8
-5
No files matched your search
+2
-2
@@ -670,12 +670,12 @@ cmd=CommandParser::CmdParser.new(ARGV) do
|
||||
EOT
|
||||
|
||||
command :resize, resize_desc, :vmid, :options =>
|
||||
OpenNebulaHelper::CAPACITY_OPTIONS_VM + [ENFORCE]do
|
||||
OpenNebulaHelper::CAPACITY_OPTIONS_VM + [ENFORCE] do
|
||||
|
||||
cpu = options[:cpu] || 0
|
||||
memory = options[:memory] || 0
|
||||
vcpu = options[:vcpu] || 0
|
||||
enforce = options[:enforce] || true
|
||||
enforce = options[:enforce] || false
|
||||
|
||||
helper.perform_action(args[0], options, "Resizing VM") do |vm|
|
||||
vm.resize(cpu, memory, vcpu, enforce)
|
||||
|
||||
Reference in new issue
Block a user