Commit cdf9db14 authored by Thibault VINCENT's avatar Thibault VINCENT
Browse files

fix volumes management handlers

parent f4d2e5af
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -678,7 +678,7 @@ class NodeHandler(RpcHandler):
    def vol_create(self, pool, name, size):
        size = int(size)
        if hasattr(self._host_handle, 'storage'):
            pool = self._host_handle.storage().pool_get(pool_name)
            pool = self._host_handle.storage().pool_get(pool)
            pool.volume_create(name, size)
        else:
            raise NotImplementedError('host handler has no storage support')
@@ -686,7 +686,7 @@ class NodeHandler(RpcHandler):
    @pure
    def vol_delete(self, pool, name, wipe=False):
        if hasattr(self._host_handle, 'storage'):
            pool = self._host_handle.storage().pool_get(pool_name)
            pool = self._host_handle.storage().pool_get(pool)
            vol = pool.volume_get(name)
            if wipe:
                vol.wipe()