Revision d2e73c0c snf-cyclades-app/synnefo/api/networks.py
b/snf-cyclades-app/synnefo/api/networks.py | ||
---|---|---|
268 | 268 |
# overLimit (413) |
269 | 269 |
|
270 | 270 |
log.debug('delete_network %s', network_id) |
271 |
net = util.get_network(network_id, request.user_uniq) |
|
271 |
net = util.get_network(network_id, request.user_uniq, for_update=True)
|
|
272 | 272 |
if net.public: |
273 | 273 |
raise Unauthorized('Can not delete the public network.') |
274 | 274 |
|
Also available in: Unified diff