Revision 23808592 snf-cyclades-app/synnefo/api/util.py

b/snf-cyclades-app/synnefo/api/util.py
51 51
                               Network, NetworkInterface, SecurityGroup,
52 52
                               BridgePoolTable, MacPrefixPoolTable, IPAddress,
53 53
                               IPPoolTable)
54
from synnefo.plankton.utils import image_backend
54
from synnefo.plankton.backend import PlanktonBackend
55 55

  
56 56
from synnefo.cyclades_settings import cyclades_services, BASE_HOST
57 57
from synnefo.lib.services import get_service_path
......
163 163
def get_image(image_id, user_id):
164 164
    """Return an Image instance or raise ItemNotFound."""
165 165

  
166
    with image_backend(user_id) as backend:
166
    with PlanktonBackend(user_id) as backend:
167 167
        return backend.get_image(image_id)
168 168

  
169 169

  

Also available in: Unified diff