In LibvirtConnection.attach_volume() we do:
mount_device = mountpoint.rpartition("/")[2] xml = self.volume_driver_method('connect_volume', connection_info, mount_device)
in _prepare_xml_info() we do:
mountpoint = vol['mount_device'] xml = self.volume_driver_method('connect_volume', connection_info, mountpoint)
Pretty confident we just need to do:
- mountpoint = vol['mount_device'] + mountpoint = vol['mount_device'].rpartition("/")[2]
In LibvirtConnecti on.attach_ volume( ) we do:
xml = self.volume_
in _prepare_xml_info() we do:
xml = self.volume_
Pretty confident we just need to do:
- mountpoint = vol['mount_device'] device' ].rpartition( "/")[2]
+ mountpoint = vol['mount_