File 535584ed-fix-target-validation-when-editing-device.patch of Package virt-manager

Subject: filesystem: Fix target validation when editing device (bz 1089422)
From: Cole Robinson crobinso@redhat.com Mon Apr 21 16:51:23 2014 -0400
Date: Mon Apr 21 16:51:57 2014 -0400:
Git: e6a67fc7099ac39257108080c8cbcfcdc6371e56


diff --git a/virtinst/devicefilesystem.py b/virtinst/devicefilesystem.py
index f516fed..28eda74 100644
--- a/virtinst/devicefilesystem.py
+++ b/virtinst/devicefilesystem.py
@@ -100,7 +100,8 @@ class VirtualFilesystem(VirtualDevice):
         # actually a directory, it is merely a arbitrary string tag
         # that is exported to the guest as a hint for where to mount
         if (self.conn.is_qemu() and
-            (self.type == self.TYPE_DEFAULT or
+            (self.type is None or
+             self.type == self.TYPE_DEFAULT or
              self.type == self.TYPE_MOUNT)):
             pass
         elif not os.path.isabs(val):
openSUSE Build Service is sponsored by