dom0/core: fix icon handling on VM clone

This commit is contained in:
Marek Marczykowski 2012-10-03 22:28:49 +02:00
parent d5c74f69ee
commit 5e696298cf

View File

@ -1097,8 +1097,8 @@ class QubesVm(object):
if src_vm.icon_path is not None and self.icon_path is not None:
if os.path.exists (src_vm.dir_path):
if os.path.islink(src_vm.dir_path):
icon_path = os.readlink(src_vm.dir_path)
if os.path.islink(src_vm.icon_path):
icon_path = os.readlink(src_vm.icon_path)
if verbose:
print >> sys.stderr, "--> Creating icon symlink: {0} -> {1}".format(self.icon_path, icon_path)
os.symlink (icon_path, self.icon_path)