Apply new type format if used

After [0] service type can have new format and
this patch applies this change to get list of services by
provided fqns.

[0] Icd3b5e238ad09584b4b7fdfb74120820078715c6

Change-Id: Id94980c82da2aac90ec98717c6f797695b293f57
Closes-bug: #1632293
(cherry picked from commit 1144b3a915)
This commit is contained in:
Omar Shykhkerimov 2016-10-11 18:13:05 +03:00
parent 1329a5bcba
commit ce5906e58f
2 changed files with 6 additions and 1 deletions

View File

@ -302,7 +302,8 @@ def service_list_by_fqns(request, environment_id, fqns):
return []
services = services_list(request, environment_id)
LOG.debug('Service::Instances::List')
return [service for service in services if service['?']['type'] in fqns]
return [service for service in services
if service['?']['type'].split('/')[0] in fqns]
def service_create(request, environment_id, parameters):

View File

@ -0,0 +1,4 @@
---
fixes:
- The issue with adding already deployed components to environment
via dropdown is fixed with applying changes for the new type format.