diff options
| author | Anthony Young <sleepsonthefloor@gmail.com> | 2011-03-23 06:26:05 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-03-23 06:26:05 +0000 |
| commit | 9e9ebb70183eb0466eef148ebb837440bd1de256 (patch) | |
| tree | a50258534418ac5a302493f54c40e54a0ae39708 | |
| parent | 1133072e884a306d9ac2262af08a9ef209574ffb (diff) | |
| parent | 846b09925da07c2858052143d5fff4766a782cf1 (diff) | |
| download | nova-9e9ebb70183eb0466eef148ebb837440bd1de256.tar.gz nova-9e9ebb70183eb0466eef148ebb837440bd1de256.tar.xz nova-9e9ebb70183eb0466eef148ebb837440bd1de256.zip | |
Fix for #740742 - format describe_instance_output correctly to prevent errors in dashboard.
Without this change, it is not possible to properly select instance types when launching instances with the OS dashboard.
| -rw-r--r-- | nova/api/ec2/admin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/ec2/admin.py b/nova/api/ec2/admin.py index 037184b40..d8d90ad83 100644 --- a/nova/api/ec2/admin.py +++ b/nova/api/ec2/admin.py @@ -120,7 +120,8 @@ class AdminController(object): def describe_instance_types(self, context, **_kwargs): """Returns all active instance types data (vcpus, memory, etc.)""" - return {'instanceTypeSet': [db.instance_type_get_all(context)]} + return {'instanceTypeSet': [instance_dict(v) for v in + db.instance_type_get_all(context).values()]} def describe_user(self, _context, name, **_kwargs): """Returns user data, including access and secret keys.""" |
