Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Inconsistent usage of cpus / vpcus in libvirt / requests. #1279

Merged
merged 1 commit into from

3 participants

@rvrignaud

Reported number of cpus was always 1 for libvirt domains.

Romain Vrignaud Inconsistent usage of cpus / vpcus in libvirt / requests.
Reported number of cpus was always 1 for libvirt domains.
f64b770
@ohadlevy ohadlevy merged commit 6c1d734 into from
@geemus
Owner

Thanks!

@alanthing alanthing referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 15, 2012
  1. Inconsistent usage of cpus / vpcus in libvirt / requests.

    Romain Vrignaud authored
    Reported number of cpus was always 1 for libvirt domains.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/fog/libvirt/requests/compute/list_domains.rb
View
4 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,
Something went wrong with that request. Please try again.