Revision decd5f45 daemons/ganeti-noded
b/daemons/ganeti-noded | ||
---|---|---|
288 | 288 |
return backend.AddOSToInstance(inst, os_disk, swap_disk) |
289 | 289 |
|
290 | 290 |
@staticmethod |
291 |
def perspective_instance_run_rename(params): |
|
292 |
"""Runs the OS rename script for an instance. |
|
293 |
|
|
294 |
""" |
|
295 |
inst_s, old_name, os_disk, swap_disk = params |
|
296 |
inst = objects.ConfigObject.Loads(inst_s) |
|
297 |
return backend.RunRenameInstance(inst, old_name, os_disk, swap_disk) |
|
298 |
|
|
299 |
@staticmethod |
|
291 | 300 |
def perspective_instance_os_import(params): |
292 | 301 |
"""Run the import function of an OS onto a given instance. |
293 | 302 |
|
Also available in: Unified diff