[virt-tools-list] [PATCH] fix source name attribute for gluster volumes

Anatoly.Belikov.wormblood at gmail.com Anatoly.Belikov.wormblood at gmail.com
Tue Jan 27 13:10:12 UTC 2015


From: Anatoly Belikov <wormblood at gmail.com>

---
 virtinst/devicedisk.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/virtinst/devicedisk.py b/virtinst/devicedisk.py
index ac03716..df2befc 100644
--- a/virtinst/devicedisk.py
+++ b/virtinst/devicedisk.py
@@ -627,7 +627,11 @@ class VirtualDisk(VirtualDevice):
 
         path = ""
         if poolxml.source_name:
-            path += poolxml.source_name + "/"
+            path += poolxml.source_name
+            if poolxml.type == poolxml.TYPE_GLUSTER:
+                path += poolxml.source_path
+            if not path.endswith('/'):
+                path += "/"
         path += volxml.name
         self.source_name = path
         self.type = "network"
-- 
1.9.1




More information about the virt-tools-list mailing list