Skip to content
Snippets Groups Projects
Commit cdf9db14 authored by Thibault VINCENT's avatar Thibault VINCENT
Browse files

fix volumes management handlers

parent f4d2e5af
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment