[PATCH] fix source name attribute for gluster volumes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Anatoly Belikov <wormblood@xxxxxxxxx>

---
 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

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux