From c80bf65ed471aebe63af08a926661442bc3c7d28 Mon Sep 17 00:00:00 2001 From: Shaunak Kashyap Date: Thu, 13 Nov 2014 19:40:38 -0800 Subject: [PATCH] Correctly populate flavor ID in flavor_ref Change-Id: I5345704f63be2d3e8b8b85f72f615778db89f300 --- poppy/storage/cassandra/services.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/poppy/storage/cassandra/services.py b/poppy/storage/cassandra/services.py index 119dd35d..3ce8f73b 100644 --- a/poppy/storage/cassandra/services.py +++ b/poppy/storage/cassandra/services.py @@ -37,6 +37,7 @@ CQL_LIST_SERVICES = ''' SELECT project_id, service_name, domains, + flavor_id, origins, caching_rules, restrictions, @@ -52,6 +53,7 @@ CQL_GET_SERVICE = ''' SELECT project_id, service_name, domains, + flavor_id, origins, caching_rules, restrictions, @@ -323,7 +325,7 @@ class ServicesController(base.ServicesController): o.get('ssl', False)) for o in origins] domains = [domain.Domain(d['domain']) for d in domains] - flavor_ref = result.get('flavor_ref') + flavor_ref = result.get('flavor_id') s = service.Service(name, domains, origins, flavor_ref) provider_detail_results = result.get('provider_details') or {} provider_details_dict = {}