diff options
| author | Anthony Young <sleepsonthefloor@gmail.com> | 2011-03-22 22:54:34 -0700 |
|---|---|---|
| committer | Anthony Young <sleepsonthefloor@gmail.com> | 2011-03-22 22:54:34 -0700 |
| commit | 846b09925da07c2858052143d5fff4766a782cf1 (patch) | |
| tree | a50258534418ac5a302493f54c40e54a0ae39708 /nova/api | |
| parent | 1133072e884a306d9ac2262af08a9ef209574ffb (diff) | |
Fix for lp740742 - format describe_instance_output correctly to prevent
errors in dashboard
Diffstat (limited to 'nova/api')
| -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.""" |
