Revision a6d847dc
b/Changelog | ||
---|---|---|
33 | 33 |
|
34 | 34 |
* Fix a few occurrences of HTTP 500 errors being triggered due to insufficient |
35 | 35 |
validation of incoming requests in the Network API |
36 |
* Speed up some API calls by fixing the relevant DB queries |
|
36 | 37 |
|
37 | 38 |
.. _Changelog-0.15rc4: |
38 | 39 |
|
b/snf-cyclades-app/synnefo/api/servers.py | ||
---|---|---|
178 | 178 |
d['hostId'] = vm.hostid |
179 | 179 |
d['updated'] = utils.isoformat(vm.updated) |
180 | 180 |
d['created'] = utils.isoformat(vm.created) |
181 |
d['flavor'] = {"id": vm.flavor.id,
|
|
182 |
"links": util.flavor_to_links(vm.flavor.id)}
|
|
181 |
d['flavor'] = {"id": vm.flavor_id,
|
|
182 |
"links": util.flavor_to_links(vm.flavor_id)}
|
|
183 | 183 |
d['image'] = {"id": vm.imageid, |
184 | 184 |
"links": util.image_to_links(vm.imageid)} |
185 | 185 |
d['suspended'] = vm.suspended |
Also available in: Unified diff