summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Hrdina <phrdina@redhat.com>2016-06-16 11:04:36 +0200
committerPavel Hrdina <phrdina@redhat.com>2016-06-16 12:00:10 +0200
commit5ecc2b440a8e34e00a0c4192c94030428102f0cb (patch)
treee86fad8c27ce30520afff8a93a50f062d4204ca8
parent86e11786b50c8b0745d594e665d561d54946284a (diff)
downloadvirt-manager-5ecc2b440a8e34e00a0c4192c94030428102f0cb.tar.gz
virtManager.create: don't clear recommended machine if none is selected
This improves loading domcapabilities to get domcapabilities for recommended machine, not for default machine. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
-rw-r--r--virtManager/create.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/virtManager/create.py b/virtManager/create.py
index c7747dd5..d9844490 100644
--- a/virtManager/create.py
+++ b/virtManager/create.py
@@ -1640,7 +1640,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: