create: Fix guest-name-from-os logic

Should be using the os name, not the 'distro' value
This commit is contained in:
Cole Robinson 2018-05-01 15:08:19 -04:00
parent 511d764b84
commit ad12a6273d
1 changed files with 2 additions and 2 deletions

View File

@ -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)