When using multipath, detach volume failure

Steps to reproduce:

1. use multipath service

2. Create a container with a volume, then delete it

3. Use the same volume to create a new container, it will fail

Closes-Bug: #1784334

Change-Id: I97551b72f9532b86658e997052d9937e658dc415
This commit is contained in:
JiWei 2018-07-30 16:34:42 +08:00 committed by JiWei
parent ac65d0205e
commit e40332c5b0

View File

@ -132,7 +132,7 @@ def check_already_mounted(devpath, mountpoint):
"""
mounts = Mounter().read_mounts()
for m in mounts:
if devpath == m.device and mountpoint == m.mountpoint:
if mountpoint == m.mountpoint:
return True
return False