Revision 23808592 snf-cyclades-app/synnefo/plankton/management/commands/image-list.py
b/snf-cyclades-app/synnefo/plankton/management/commands/image-list.py | ||
---|---|---|
32 | 32 |
from optparse import make_option |
33 | 33 |
|
34 | 34 |
from snf_django.management.utils import pprint_table |
35 |
from synnefo.plankton.utils import image_backend
|
|
35 |
from synnefo.plankton.backend import PlanktonBackend
|
|
36 | 36 |
|
37 | 37 |
|
38 | 38 |
class Command(BaseCommand): |
... | ... | |
50 | 50 |
def handle(self, **options): |
51 | 51 |
user = options['userid'] |
52 | 52 |
|
53 |
with image_backend(user) as backend:
|
|
53 |
with PlanktonBackend(user) as backend:
|
|
54 | 54 |
images = backend._list_images(user) |
55 | 55 |
images.sort(key=lambda x: x['created_at'], reverse=True) |
56 | 56 |
|
Also available in: Unified diff