Revision c465e496 snf-cyclades-app/synnefo/logic/backend.py

b/snf-cyclades-app/synnefo/logic/backend.py
1073 1073
        return client.ModifyInstance(**kwargs)
1074 1074

  
1075 1075

  
1076
def snapshot_instance(vm, snapshot_name):
1077
    #volume = instance.volumes.all()[0]
1078
    with pooled_rapi_client(vm) as client:
1079
        return client.SnapshotInstance(instance=vm.backend_vm_id,
1080
                                       snapshot_name=snapshot_name)
1081

  
1082

  
1076 1083
def get_instances(backend, bulk=True):
1077 1084
    with pooled_rapi_client(backend) as c:
1078 1085
        return c.GetInstances(bulk=bulk)

Also available in: Unified diff