From ad12a6273d497cc0840935411dd25a4cb292be69 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 1 May 2018 15:08:19 -0400 Subject: [PATCH] create: Fix guest-name-from-os logic Should be using the os name, not the 'distro' value --- virtManager/create.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virtManager/create.py b/virtManager/create.py index 512bb367..87f92770 100644 --- a/virtManager/create.py +++ b/virtManager/create.py @@ -1637,11 +1637,11 @@ class vmmCreate(vmmGObjectUI): if self._guest.os.is_container(): basename = "container" force_num = True - elif not osobj or not osobj.distro: + elif not osobj: basename = "vm" force_num = True else: - basename = osobj.distro + basename = osobj.name if self._guest.os.arch != self.conn.caps.host.cpu.arch: basename += "-%s" % _pretty_arch(self._guest.os.arch)