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

b/snf-cyclades-app/synnefo/api/management/commands/network-remove.py
31 31
from django.core.management.base import BaseCommand, CommandError
32 32
from synnefo.logic.backend import delete_network
33 33
from synnefo.management.common import get_network
34
from synnefo import quotas
34 35

  
35 36

  
36 37
class Command(BaseCommand):
......
54 55

  
55 56
        network.action = 'DESTROY'
56 57
        network.save()
58
        quotas.issue_and_accept_commission(network, delete=True)
57 59
        delete_network(network)
58 60

  
59 61
        self.stdout.write('Successfully removed network.\n')

Also available in: Unified diff