Trival Change: Remove redundant code in instance delete

Change-Id: I92e57aefeb909297cf3d4f566a3308aa9312bb02
This commit is contained in:
songwenping 2020-10-25 09:18:39 +08:00
parent 0e5aa1b5e1
commit 0be00cd58a
1 changed files with 0 additions and 3 deletions

View File

@ -1372,9 +1372,6 @@ class LibvirtDriver(driver.ComputeDriver):
# this would be unset
continue
disk_dev = vol['mount_device']
if disk_dev is not None:
disk_dev = disk_dev.rpartition("/")[2]
try:
self._disconnect_volume(context, connection_info, instance)
except Exception as exc: