summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorin Hochstein <lorin@isi.edu>2011-06-25 00:22:59 -0400
committerLorin Hochstein <lorin@isi.edu>2011-06-25 00:22:59 -0400
commit0f5e7930b48ddd48a803ff5afd25f980df2e31b6 (patch)
tree539c1c7bc38807f64f597af5e7bff9656b112e37
parentaf4e663dee05c907d7ccddc3bb929ff114e876cc (diff)
downloadnova-0f5e7930b48ddd48a803ff5afd25f980df2e31b6.tar.gz
nova-0f5e7930b48ddd48a803ff5afd25f980df2e31b6.tar.xz
nova-0f5e7930b48ddd48a803ff5afd25f980df2e31b6.zip
pep8
-rw-r--r--nova/db/sqlalchemy/api.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py
index 55f4bf072..bf5cd5e23 100644
--- a/nova/db/sqlalchemy/api.py
+++ b/nova/db/sqlalchemy/api.py
@@ -2626,12 +2626,12 @@ def _dict_with_extra_specs(inst_type_query):
and returns it as a dictionary, converting the extra_specs
entry from a list of dicts:
- 'extra_specs' : [{'key': 'k1', 'value': 'v1', ...}, ...]
-
+ 'extra_specs' : [{'key': 'k1', 'value': 'v1', ...}, ...]
+
to a single dict:
-
+
'extra_specs' : {'k1': 'v1'}
-
+
"""
inst_type_dict = dict(inst_type_query)
extra_specs = dict([(x['key'], x['value']) for x in \