From 93b2424867993670131dc8184f2ec3fa331d202b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 6 Apr 2018 12:10:50 +0200 Subject: [PATCH] vm/qubesvm: fix missing icon handling in clone_disk_files() Check for icon existence, not a directory for it. --- qubes/vm/qubesvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/vm/qubesvm.py b/qubes/vm/qubesvm.py index c920c5a8..4730a2aa 100644 --- a/qubes/vm/qubesvm.py +++ b/qubes/vm/qubesvm.py @@ -1438,7 +1438,7 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM): assert self.volumes != {} if src.icon_path is not None \ - and os.path.exists(src.dir_path) \ + and os.path.exists(src.icon_path) \ and self.icon_path is not None: if os.path.islink(src.icon_path): icon_path = os.readlink(src.icon_path)