Revision 2cd3f389 snf-cyclades-app/synnefo/logic/backend.py

b/snf-cyclades-app/synnefo/logic/backend.py
454 454
        return client.ShutdownInstance(vm.backend_vm_id, dry_run=settings.TEST)
455 455

  
456 456

  
457
def resize_instance(vm, vcpus, memory):
458
    beparams = {"vcpus": int(vcpus),
459
                "minmem": int(memory),
460
                "maxmem": int(memory)}
461
    with pooled_rapi_client(vm) as client:
462
        return client.ModifyInstance(vm.backend_vm_id, beparams=beparams)
463

  
464

  
457 465
def get_instance_console(vm):
458 466
    # RAPI GetInstanceConsole() returns endpoints to the vnc_bind_address,
459 467
    # which is a cluster-wide setting, either 0.0.0.0 or 127.0.0.1, and pretty

Also available in: Unified diff