Revision d15a9ad3 lib/rpc.py

b/lib/rpc.py
269 269
    c.run()
270 270
    return c.getresult().get(node, False)
271 271

  
272
  def call_instance_os_add(self, node, inst, osdev, swapdev):
272
  def call_instance_os_add(self, node, inst):
273 273
    """Installs an OS on the given instance.
274 274

  
275 275
    This is a single-node call.
276 276

  
277 277
    """
278
    params = [self._InstDict(inst), osdev, swapdev]
278
    params = [self._InstDict(inst)]
279 279
    c = Client("instance_os_add", params)
280 280
    c.connect(node)
281 281
    c.run()
282 282
    return c.getresult().get(node, False)
283 283

  
284
  def call_instance_run_rename(self, node, inst, old_name, osdev, swapdev):
284
  def call_instance_run_rename(self, node, inst, old_name):
285 285
    """Run the OS rename script for an instance.
286 286

  
287 287
    This is a single-node call.
288 288

  
289 289
    """
290
    params = [self._InstDict(inst), old_name, osdev, swapdev]
290
    params = [self._InstDict(inst), old_name]
291 291
    c = Client("instance_run_rename", params)
292 292
    c.connect(node)
293 293
    c.run()

Also available in: Unified diff