Revision 9835a70d

b/snf-cyclades-app/synnefo/api/management/commands/port-list.py
36 36
from snf_django.management.commands import ListCommand
37 37
from synnefo.db.models import NetworkInterface
38 38
from synnefo.settings import (CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN,
39
                              ASTAKOS_BASE_URL)
39
                              ASTAKOS_AUTH_URL)
40 40

  
41 41
from logging import getLogger
42 42
log = getLogger(__name__)
......
61 61

  
62 62
    object_class = NetworkInterface
63 63
    user_uuid_field = "userid"
64
    astakos_url = ASTAKOS_BASE_URL
64
    astakos_url = ASTAKOS_AUTH_URL
65 65
    astakos_token = ASTAKOS_TOKEN
66 66
    prefetch_related = ["ips"]
67 67

  
b/snf-cyclades-app/synnefo/api/management/commands/subnet-list.py
35 35

  
36 36
from snf_django.management.commands import ListCommand, CommandError
37 37
from synnefo.settings import (CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN,
38
                              ASTAKOS_BASE_URL)
38
                              ASTAKOS_AUTH_URL)
39 39
from synnefo.db.models import Subnet
40 40

  
41 41
from logging import getLogger
......
67 67
    )
68 68

  
69 69
    object_class = Subnet
70
    astakos_url = ASTAKOS_BASE_URL
70
    astakos_url = ASTAKOS_AUTH_URL
71 71
    astakos_token = ASTAKOS_TOKEN
72 72

  
73 73
    FIELDS = {
b/snf-cyclades-app/synnefo/management/pprint.py
36 36
from synnefo.lib.ordereddict import OrderedDict
37 37
from snf_django.lib.astakos import UserCache
38 38
from synnefo.settings import (CYCLADES_SERVICE_TOKEN as ASTAKOS_TOKEN,
39
                              ASTAKOS_BASE_URL)
39
                              ASTAKOS_AUTH_URL)
40 40
from synnefo.db.models import Backend, pooled_rapi_client
41 41
from synnefo.db.pools import bitarray_to_map
42 42

  
......
51 51
    if title is None:
52 52
        title = "State of Network %s in DB" % network.id
53 53

  
54
    ucache = UserCache(ASTAKOS_BASE_URL, ASTAKOS_TOKEN)
54
    ucache = UserCache(ASTAKOS_AUTH_URL, ASTAKOS_TOKEN)
55 55
    userid = network.userid
56 56

  
57 57
    db_network = OrderedDict([
......
267 267
    if title is None:
268 268
        title = "State of Server %s in DB" % server.id
269 269

  
270
    ucache = UserCache(ASTAKOS_BASE_URL, ASTAKOS_TOKEN)
270
    ucache = UserCache(ASTAKOS_AUTH_URL, ASTAKOS_TOKEN)
271 271
    userid = server.userid
272 272

  
273 273
    try:

Also available in: Unified diff