Revision 8283d6c1 snf-cyclades-app/synnefo/logic/management/commands/network-inspect.py
b/snf-cyclades-app/synnefo/logic/management/commands/network-inspect.py | ||
---|---|---|
36 | 36 |
from optparse import make_option |
37 | 37 |
|
38 | 38 |
from django.core.management.base import BaseCommand, CommandError |
39 |
from synnefo.management.common import get_network, UUIDCache, Omit
|
|
39 |
from synnefo.management.common import get_network, UserCache, Omit
|
|
40 | 40 |
|
41 | 41 |
from synnefo.db.models import (Backend, BackendNetwork, |
42 | 42 |
pooled_rapi_client) |
... | ... | |
62 | 62 |
|
63 | 63 |
net = get_network(args[0]) |
64 | 64 |
|
65 |
ucache = UUIDCache()
|
|
65 |
ucache = UserCache()
|
|
66 | 66 |
|
67 | 67 |
displayname = options['displayname'] |
68 | 68 |
|
... | ... | |
75 | 75 |
|
76 | 76 |
uuid = net.userid |
77 | 77 |
if displayname: |
78 |
dname = ucache.get_user(uuid)
|
|
78 |
dname = ucache.get_name(uuid)
|
|
79 | 79 |
|
80 | 80 |
fields = filter(lambda x: x is not Omit, |
81 | 81 |
[net.name, net.backend_id, net.state, uuid or '-', |
Also available in: Unified diff