Revision d15a9ad3 daemons/ganeti-noded

b/daemons/ganeti-noded
321 321
    """Install an OS on a given instance.
322 322

  
323 323
    """
324
    inst_s, os_disk, swap_disk = params
324
    inst_s = params[0]
325 325
    inst = objects.Instance.FromDict(inst_s)
326
    return backend.AddOSToInstance(inst, os_disk, swap_disk)
326
    return backend.AddOSToInstance(inst)
327 327

  
328 328
  @staticmethod
329 329
  def perspective_instance_run_rename(params):
330 330
    """Runs the OS rename script for an instance.
331 331

  
332 332
    """
333
    inst_s, old_name, os_disk, swap_disk = params
333
    inst_s, old_name = params
334 334
    inst = objects.Instance.FromDict(inst_s)
335
    return backend.RunRenameInstance(inst, old_name, os_disk, swap_disk)
335
    return backend.RunRenameInstance(inst, old_name)
336 336

  
337 337
  @staticmethod
338 338
  def perspective_instance_os_import(params):

Also available in: Unified diff