28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
|
Subject: virtManager.create: don't clear recommended machine if none is selected
|
||
|
From: Pavel Hrdina phrdina@redhat.com Thu Jun 16 11:04:36 2016 +0200
|
||
|
Date: Thu Jun 16 12:00:10 2016 +0200:
|
||
|
Git: 5ecc2b440a8e34e00a0c4192c94030428102f0cb
|
||
|
|
||
|
This improves loading domcapabilities to get domcapabilities for recommended
|
||
|
machine, not for default machine.
|
||
|
|
||
|
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
||
|
|
||
|
Index: virt-manager-1.3.2/virtManager/create.py
|
||
|
===================================================================
|
||
|
--- virt-manager-1.3.2.orig/virtManager/create.py
|
||
|
+++ virt-manager-1.3.2/virtManager/create.py
|
||
|
@@ -1636,7 +1636,11 @@ class vmmCreate(vmmGObjectUI):
|
||
|
|
||
|
def _build_guest(self, variant):
|
||
|
guest = self.conn.caps.build_virtinst_guest(self._capsinfo)
|
||
|
- guest.os.machine = self._get_config_machine()
|
||
|
+
|
||
|
+ # If no machine was selected don't clear recommended machine
|
||
|
+ machine = self._get_config_machine()
|
||
|
+ if machine:
|
||
|
+ guest.os.machine = machine
|
||
|
|
||
|
# Generate UUID (makes customize dialog happy)
|
||
|
try:
|