Commit a31ac883 authored by Georgios D. Tsoukalas's avatar Georgios D. Tsoukalas Committed by Christos Stavrakakis
Browse files

update to use new quotaholder packaging api

parent 0d79392f
......@@ -34,9 +34,9 @@ from synnefo.settings import QUOTAHOLDER_URL
from synnefo.db.models import QuotaHolderSerial
from synnefo.api.faults import OverLimit
from commissioning.clients.quotaholder import QuotaholderHTTP
from commissioning.api.exception import (NoCapacityError, NoQuantityError,
from quotaholder.clients.kamaki import quotaholder_client
from quotaholder.api import (NoCapacityError, NoQuantityError)
from commissioning import CallError
import logging
log = logging.getLogger(__name__)
......@@ -45,7 +45,7 @@ log = logging.getLogger(__name__)
def get_quota_holder():
"""Context manager for using a QuotaHolder."""
quotaholder = QuotaholderHTTP(QUOTAHOLDER_URL)
quotaholder = quotaholder_client(QUOTAHOLDER_URL)
yield quotaholder
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment