Revision d15a9ad3 lib/backend.py
b/lib/backend.py | ||
---|---|---|
516 | 516 |
return output |
517 | 517 |
|
518 | 518 |
|
519 |
def AddOSToInstance(instance, os_disk, swap_disk):
|
|
519 |
def AddOSToInstance(instance): |
|
520 | 520 |
"""Add an OS to an instance. |
521 | 521 |
|
522 |
Args: |
|
523 |
instance: the instance object |
|
524 |
os_disk: the instance-visible name of the os device |
|
525 |
swap_disk: the instance-visible name of the swap device |
|
522 |
@type instance: L{objects.Instance} |
|
523 |
@param instance: Instance whose OS is to be installed |
|
526 | 524 |
|
527 | 525 |
""" |
528 | 526 |
inst_os = OSFromDisk(instance.os) |
... | ... | |
548 | 546 |
return True |
549 | 547 |
|
550 | 548 |
|
551 |
def RunRenameInstance(instance, old_name, os_disk, swap_disk):
|
|
549 |
def RunRenameInstance(instance, old_name): |
|
552 | 550 |
"""Run the OS rename script for an instance. |
553 | 551 |
|
554 |
Args: |
|
555 |
instance: the instance object |
|
556 |
old_name: the old name of the instance |
|
557 |
os_disk: the instance-visible name of the os device |
|
558 |
swap_disk: the instance-visible name of the swap device |
|
552 |
@type instance: objects.Instance |
|
553 |
@param instance: Instance whose OS is to be installed |
|
554 |
@type old_name: string |
|
555 |
@param old_name: previous instance name |
|
559 | 556 |
|
560 | 557 |
""" |
561 | 558 |
inst_os = OSFromDisk(instance.os) |
Also available in: Unified diff