Permalink
Browse files

Inconsistent usage of cpus / vpcus in libvirt / requests.

Reported number of cpus was always 1 for libvirt domains.
  • Loading branch information...
1 parent 397b015 commit f64b770f0080ee2b98362c5ca645fc27cc73aaa3 Romain Vrignaud committed Nov 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/fog/libvirt/requests/compute/list_domains.rb
@@ -58,7 +58,7 @@ def domain_to_attributes(dom)
: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 @@ def mock_domain name
:max_memory_size => 8,
:cputime => 7,
:memory_size => 6,
- :vcpus => 5,
+ :cpus => 5,
:autostart => false,
:os_type => "RHEL6",
:active => false,

0 comments on commit f64b770

Please sign in to comment.