Commit 9c6bee2c authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Rename ARCHIPELAGOS to ARCHIPELAGO

Rename ARCHIPELAGOS_BACKENDS setting to ARCHIPELAGO_BACKEND.
parent 5098d647
......@@ -67,8 +67,8 @@ APPEND_SLASH = False
# e.g. BACKEND_PER_USER = {'example@okeanos.grnet.gr': 2}
BACKEND_PER_USER = {}
# List of backend IDs used *only* for archipelagos.
ARCHIPELAGOS_BACKENDS = []
# List of backend IDs used *only* for archipelago.
ARCHIPELAGO_BACKENDS = []
# Quota
# Maximum number of VMs a user is allowed to have.
......
......@@ -32,7 +32,7 @@ import datetime
from django.utils import importlib
from synnefo.settings import (BACKEND_ALLOCATOR_MODULE, BACKEND_REFRESH_MIN,
BACKEND_PER_USER, ARCHIPELAGOS_BACKENDS)
BACKEND_PER_USER, ARCHIPELAGO_BACKENDS)
from synnefo.db.models import Backend
from synnefo.logic.backend import update_resources
from synnefo.api.util import backend_public_networks
......@@ -106,10 +106,10 @@ def get_available_backends():
def filter_archipelagos_backends(available_backends, disk_template):
if disk_template.startswith("ext_"):
available_backends = filter(lambda x: x.id in ARCHIPELAGOS_BACKENDS,
available_backends = filter(lambda x: x.id in ARCHIPELAGO_BACKENDS,
available_backends)
else:
available_backends = filter(lambda x: x.id not in ARCHIPELAGOS_BACKENDS,
available_backends = filter(lambda x: x.id not in ARCHIPELAGO_BACKENDS,
available_backends)
return available_backends
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment