Revision c34b2908 snf-cyclades-app/synnefo/api/management/commands/network-create.py

b/snf-cyclades-app/synnefo/api/management/commands/network-create.py
37 37
from synnefo.management.common import validate_network_info, get_backend
38 38
from synnefo.webproject.management.utils import pprint_table
39 39

  
40
from synnefo import quotas
40 41
from synnefo.db.models import Network
41 42
from synnefo.logic.backend import create_network
42 43
from synnefo.api.util import values_from_flavor
......
200 201
            return
201 202

  
202 203
        network = Network.objects.create(**netinfo)
204
        if userid:
205
            quotas.issue_and_accept_commission(network)
203 206

  
204 207
        if public:
205 208
            # Create BackendNetwork only to the specified Backend

Also available in: Unified diff