feature #1722: Use the right units for host update. Fix enforce in onevm command

This commit is contained in:
Ruben S. Montero committed 2013-02-24 00:57:55 +01:00
1 parent 126af25bb7
commit 19e90ec530
3 files changed
+8 -5

No files matched your search

+2 -2
View File
@@ -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)