diskbackend: Fix busted volume lookup API name
This commit is contained in:
parent
c82507fc41
commit
4553912c64
|
@ -70,7 +70,7 @@ def _lookup_vol_by_basename(pool, path):
|
|||
"""
|
||||
name = os.path.basename(path)
|
||||
if name in pool.listVolumes():
|
||||
return pool.lookupByName(name)
|
||||
return pool.storageVolLookupByName(name)
|
||||
|
||||
|
||||
def check_if_path_managed(conn, path):
|
||||
|
|
Loading…
Reference in New Issue