Revision b471b597
b/snf-cyclades-app/synnefo/api/management/commands/network-remove.py | ||
---|---|---|
56 | 56 |
network.action = 'DESTROY' |
57 | 57 |
network.save() |
58 | 58 |
|
59 |
quotas.issue_and_accept_commission(network, delete=True) |
|
59 |
if network.userid: |
|
60 |
quotas.issue_and_accept_commission(network, delete=True) |
|
60 | 61 |
|
61 | 62 |
for bnet in network.backend_networks.exclude(operstate="DELETED"): |
62 | 63 |
delete_network(network, bnet.backend) |
Also available in: Unified diff