Commit 8a31717c authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Fix parameters to RPC "blockdev_rename"

Before this patch it would take a variable number of arguments, which
isn't very good for a definition-based approach.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent c5a8b0eb
......@@ -1010,7 +1010,7 @@ class RpcRunner(object):
return self._SingleNodeCall(node, "blockdev_rename",
[(d.ToDict(), uid) for d, uid in devlist])
[[(d.ToDict(), uid) for d, uid in devlist]])
def call_blockdev_pause_resume_sync(self, node, disks, pause):
......@@ -216,7 +216,7 @@ class NodeHttpServer(http.server.HttpServer):
"""Remove a block device.
devlist = [(objects.Disk.FromDict(ds), uid) for ds, uid in params]
devlist = [(objects.Disk.FromDict(ds), uid) for ds, uid in params[0]]
return backend.BlockdevRename(devlist)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment