diff options
author | Cole Robinson <crobinso@redhat.com> | 2020-08-27 18:02:10 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2020-08-27 19:41:28 -0400 |
commit | 34c6d1c7eaffdfd52d740524481e69145e657b5e (patch) | |
tree | 2705c71f5f40d652df70524bc03255f76ce3bccd /virtManager/object/domain.py | |
parent | ade6c34a963699a5b36a444cc68e6f9889826f66 (diff) | |
download | virt-manager-34c6d1c7eaffdfd52d740524481e69145e657b5e.tar.gz |
virtinst: cpu: Move topology elements to their own class
This is a no-op but will help with a future bug fix
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virtManager/object/domain.py')
-rw-r--r-- | virtManager/object/domain.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/virtManager/object/domain.py b/virtManager/object/domain.py index f47185be..62410bfc 100644 --- a/virtManager/object/domain.py +++ b/virtManager/object/domain.py @@ -559,9 +559,9 @@ class vmmDomain(vmmLibvirtObject): guest.vcpu_current = int(vcpus) if sockets != _SENTINEL: - guest.cpu.sockets = sockets - guest.cpu.cores = cores - guest.cpu.threads = threads + guest.cpu.topology.sockets = sockets + guest.cpu.topology.cores = cores + guest.cpu.topology.threads = threads if secure != _SENTINEL or model != _SENTINEL: guest.cpu.secure = secure @@ -1205,9 +1205,6 @@ class vmmDomain(vmmLibvirtObject): def get_description(self): return self.get_xmlobj().description - def get_cpu_config(self): - return self.get_xmlobj().cpu - def get_boot_order(self): legacy = not self.can_use_device_boot_order() return self.xmlobj.get_boot_order(legacy=legacy) |