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 <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent c5a8b0eb
...@@ -1010,7 +1010,7 @@ class RpcRunner(object): ...@@ -1010,7 +1010,7 @@ class RpcRunner(object):
""" """
return self._SingleNodeCall(node, "blockdev_rename", return self._SingleNodeCall(node, "blockdev_rename",
[(d.ToDict(), uid) for d, uid in devlist]) [[(d.ToDict(), uid) for d, uid in devlist]])
@_RpcTimeout(_TMO_NORMAL) @_RpcTimeout(_TMO_NORMAL)
def call_blockdev_pause_resume_sync(self, node, disks, pause): def call_blockdev_pause_resume_sync(self, node, disks, pause):
......
...@@ -216,7 +216,7 @@ class NodeHttpServer(http.server.HttpServer): ...@@ -216,7 +216,7 @@ class NodeHttpServer(http.server.HttpServer):
"""Remove a block device. """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) return backend.BlockdevRename(devlist)
@staticmethod @staticmethod
......
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