Revision f05a25af snf-cyclades-app/synnefo/logic/servers.py
b/snf-cyclades-app/synnefo/logic/servers.py | ||
---|---|---|
318 | 318 |
|
319 | 319 |
log.info("Resizing VM from flavor '%s' to '%s", old_flavor, flavor) |
320 | 320 |
commission_info = {"cyclades.cpu": flavor.cpu - old_flavor.cpu, |
321 |
"cyclades.ram": flavor.ram - old_flavor.ram}
|
|
321 |
"cyclades.ram": 1048576 * (flavor.ram - old_flavor.ram)}
|
|
322 | 322 |
# Save serial to VM, since it is needed by server_command decorator |
323 | 323 |
vm.serial = quotas.issue_commission(user=vm.userid, |
324 | 324 |
source=quotas.DEFAULT_SOURCE, |
Also available in: Unified diff