Revision 23808592 snf-cyclades-app/synnefo/admin/stats.py

b/snf-cyclades-app/synnefo/admin/stats.py
43 43

  
44 44
from snf_django.lib.astakos import UserCache
45 45
from synnefo.db.models import VirtualMachine, Network, Backend
46
from synnefo.plankton.utils import image_backend
46
from synnefo.plankton.backend import PlanktonBackend
47 47
from synnefo.logic import backend as backend_mod
48 48

  
49 49

  
......
204 204
    def get_image(self, imageid, userid):
205 205
        if not imageid in self.images:
206 206
            try:
207
                with image_backend(userid) as ib:
207
                with PlanktonBackend(userid) as ib:
208 208
                    image = ib.get_image(imageid)
209 209
                properties = image.get("properties")
210 210
                os = properties.get("os",

Also available in: Unified diff