Blob Blame History Raw
From 6f270688ba7384e530fbe132216f19af91d95d45 Mon Sep 17 00:00:00 2001
Message-Id: <6f270688ba7384e530fbe132216f19af91d95d45.1351034763.git.crobinso@redhat.com>
From: Cole Robinson <crobinso@redhat.com>
Date: Sat, 13 Oct 2012 22:37:36 -0400
Subject: [PATCH 1/4] VirtualDisk: Ignore path=None for permissions check

Breaks qemu + adding empty CDROM in virt-manager:
https://bugzilla.redhat.com/show_bug.cgi?id=859344
(cherry picked from commit 31d817c42771afb3e9974d099379986b838c233a)
---
 virtinst/VirtualDisk.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/virtinst/VirtualDisk.py b/virtinst/VirtualDisk.py
index e763125..8323073 100644
--- a/virtinst/VirtualDisk.py
+++ b/virtinst/VirtualDisk.py
@@ -383,6 +383,8 @@ class VirtualDisk(VirtualDevice):
         @return: List of the directories the user cannot search, or empty list
         @rtype : C{list}
         """
+        if path is None:
+            return []
         if _util.is_uri_remote(conn.getURI(), conn=conn):
             return []
 
-- 
1.7.11.7