diff options
| author | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-06-06 17:58:40 -0700 |
|---|---|---|
| committer | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-06-06 17:58:40 -0700 |
| commit | 727317333978ac5cf0fb1cd3f86e49e9868f1e19 (patch) | |
| tree | 497416d696a7162fe3a96fe4d48a9a9327404ef6 /nova/api | |
| parent | b1fb63713e592f8d7e8406287ce77e345d2ad30f (diff) | |
| download | nova-727317333978ac5cf0fb1cd3f86e49e9868f1e19.tar.gz nova-727317333978ac5cf0fb1cd3f86e49e9868f1e19.tar.xz nova-727317333978ac5cf0fb1cd3f86e49e9868f1e19.zip | |
fixed up tests after trunk merge
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/zones.py | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/nova/api/openstack/zones.py b/nova/api/openstack/zones.py index 330aee85f..0f83afb34 100644 --- a/nova/api/openstack/zones.py +++ b/nova/api/openstack/zones.py @@ -58,12 +58,7 @@ def check_encryption_key(func): return wrapped -class Controller(common.OpenstackController): - - _serialization_metadata = { - 'application/xml': { - "attributes": { - "zone": ["id", "api_url", "name", "capabilities"]}}} +class Controller(object): def index(self, req): """Return all zones in brief""" @@ -114,12 +109,12 @@ class Controller(common.OpenstackController): return dict(zone=_scrub_zone(zone)) @check_encryption_key - def select(self, req): + def select(self, req, body): """Returns a weighted list of costs to create instances of desired capabilities.""" ctx = req.environ['nova.context'] - json_specs = json.loads(req.body) - specs = json.loads(json_specs) + print "**** ZONES ", body + specs = json.loads(body) build_plan = api.select(ctx, specs=specs) cooked = self._scrub_build_plan(build_plan) return {"weights": cooked} |
