mirror of
https://src.fedoraproject.org/rpms/virt-manager.git
synced 2025-07-16 17:14:53 +00:00
25 lines
981 B
Diff
25 lines
981 B
Diff
From: Cole Robinson <crobinso@redhat.com>
|
|
Date: Mon, 21 Apr 2014 16:51:23 -0400
|
|
Subject: [PATCH virt-manager] filesystem: Fix target validation when editing
|
|
device (bz 1089422)
|
|
|
|
(cherry picked from commit e6a67fc7099ac39257108080c8cbcfcdc6371e56)
|
|
---
|
|
virtinst/devicefilesystem.py | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
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):
|