From f64b770f0080ee2b98362c5ca645fc27cc73aaa3 Mon Sep 17 00:00:00 2001 From: Romain Vrignaud Date: Thu, 15 Nov 2012 11:04:54 +0100 Subject: [PATCH] Inconsistent usage of cpus / vpcus in libvirt / requests. Reported number of cpus was always 1 for libvirt domains. --- lib/fog/libvirt/requests/compute/list_domains.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/libvirt/requests/compute/list_domains.rb b/lib/fog/libvirt/requests/compute/list_domains.rb index 8d92f46c8..0516040d4 100644 --- a/lib/fog/libvirt/requests/compute/list_domains.rb +++ b/lib/fog/libvirt/requests/compute/list_domains.rb @@ -58,7 +58,7 @@ module Fog :max_memory_size => dom.info.max_mem, :cputime => dom.info.cpu_time, :memory_size => dom.info.memory, - :vcpus => dom.info.nr_virt_cpu, + :cpus => dom.info.nr_virt_cpu, :autostart => dom.autostart?, :os_type => dom.os_type, :active => dom.active?, @@ -89,7 +89,7 @@ module Fog :max_memory_size => 8, :cputime => 7, :memory_size => 6, - :vcpus => 5, + :cpus => 5, :autostart => false, :os_type => "RHEL6", :active => false,