Commit 87b9fa74 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

astakos: Adapt reconcile-resources to new-style services

parent 0e535616
......@@ -37,7 +37,7 @@ from import BaseCommand, CommandError
from import pprint_table
from snf_django.lib.db.transaction import commit_on_success_strict
from import Service, AstakosUser
from import Component, AstakosUser
from import service_get_quotas, SYSTEM
from import count_pending_app
import astakos.quotaholder_app.callpoint as qh
......@@ -74,9 +74,9 @@ class Command(BaseCommand):
userid = options['userid']
astakos = Service.objects.get(name="astakos")
except Service.DoesNotExist:
raise CommandError("Service 'astakos' not found.")
astakos = Component.objects.get(name="astakos")
except Component.DoesNotExist:
raise CommandError("Component 'astakos' not found.")
query = [userid] if userid is not None else None
qh_holdings = service_get_quotas(astakos, query)
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