Commit 8fd1eca0 authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Sync user after changing base quota

parent bf8e4fc0
......@@ -41,7 +41,9 @@ from collections import namedtuple
from import BaseCommand, CommandError
from django.core.validators import validate_email
from snf_django.lib.db.transaction import commit_on_success_strict
from import AstakosUser, AstakosUserQuota, Resource
from import qh_sync
AddResourceArgs = namedtuple('AddQuotaArgs', ('resource',
......@@ -86,6 +88,7 @@ for a single user from the command line
help="Do not ask for confirmation"),
def handle(self, *args, **options):
from_file = options['from_file']
set_capacity = options['set_capacity']
......@@ -165,6 +168,7 @@ for a single user from the command line
except Exception as e:
raise CommandError("Failed to add policy: %s" % e)
def import_from_file(self, location):
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