storage: Remove needless manage_path wrapper

This commit is contained in:
Cole Robinson 2018-10-11 19:23:18 -04:00
parent d36aa7fbaf
commit c0314cad2e
1 changed files with 2 additions and 13 deletions

View File

@ -202,18 +202,6 @@ class StoragePool(_StorageObject):
_("Couldn't create default storage pool '%s': %s") %
(path, str(e)))
@staticmethod
def manage_path(conn, path):
"""
If the passed path is managed, lookup its storage objects.
If the passed path isn't managed, attempt to manage it if
we can.
:returns: (vol, parent pool) tuple
"""
from . import diskbackend
return diskbackend.manage_path(conn, path)
@staticmethod
def get_default_dir(conn, build=False):
"""
@ -654,7 +642,8 @@ class StorageVolume(_StorageObject):
def _detect_backing_store_format(self):
logging.debug("Attempting to detect format for backing_store=%s",
self.backing_store)
vol, pool = StoragePool.manage_path(self.conn, self.backing_store)
from . import diskbackend
vol, pool = diskbackend.manage_path(self.conn, self.backing_store)
if not vol:
logging.debug("Didn't find any volume for backing_store")