Revision 1316db51 snf-cyclades-app/synnefo/logic/backend.py

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

  
1081 1081

  
1082
def snapshot_instance(vm, snapshot_name):
1083
    #volume = instance.volumes.all()[0]
1084
    with pooled_rapi_client(vm) as client:
1085
        return client.SnapshotInstance(instance=vm.backend_vm_id,
1086
                                       snapshot_name=snapshot_name)
1087

  
1088

  
1082 1089
def get_instances(backend, bulk=True):
1083 1090
    with pooled_rapi_client(backend) as c:
1084 1091
        return c.GetInstances(bulk=bulk)

Also available in: Unified diff