Revision 8d5795b4 snf-cyclades-app/synnefo/logic/backend.py
b/snf-cyclades-app/synnefo/logic/backend.py | ||
---|---|---|
213 | 213 |
disk=old_flavor.disk, |
214 | 214 |
disk_template=old_flavor.disk_template) |
215 | 215 |
except Flavor.DoesNotExist: |
216 |
raise Exception("Can not find flavor for VM")
|
|
216 |
raise Exception("Cannot find flavor for VM") |
|
217 | 217 |
vm.flavor = new_flavor |
218 | 218 |
vm.save() |
219 | 219 |
|
... | ... | |
363 | 363 |
active=True) |
364 | 364 |
except IPAddressLog.MultipleObjectsReturned: |
365 | 365 |
logmsg = ("Multiple active log entries for IP %s, Network %s," |
366 |
"Server %s. Can not proceed!"
|
|
366 |
"Server %s. Cannot proceed!" |
|
367 | 367 |
% (ip.address, ip.network, nic.machine)) |
368 | 368 |
log.error(logmsg) |
369 | 369 |
raise |
... | ... | |
451 | 451 |
# Release the resources on the deletion of the Network |
452 | 452 |
if deleted: |
453 | 453 |
if network.ips.filter(deleted=False, floating_ip=True).exists(): |
454 |
msg = "Can not delete network %s! Floating IPs still in use!"
|
|
454 |
msg = "Cannot delete network %s! Floating IPs still in use!" |
|
455 | 455 |
log.error(msg % network) |
456 | 456 |
raise Exception(msg % network) |
457 | 457 |
log.info("Network %r deleted. Releasing link %r mac_prefix %r", |
Also available in: Unified diff