diff --git a/murano/api/v1/cloudfoundry/cfapi.py b/murano/api/v1/cloudfoundry/cfapi.py index 7c85a292..9406af4d 100644 --- a/murano/api/v1/cloudfoundry/cfapi.py +++ b/murano/api/v1/cloudfoundry/cfapi.py @@ -21,7 +21,7 @@ from oslo_log import log as logging import six from webob import response -from murano.common.i18n import _LI +from murano.common.i18n import _LI, _LW from murano.common import wsgi from murano.db.catalog import api as db_api from murano.db.services import cf_connections as db_cf @@ -137,8 +137,16 @@ class Controller(object): service = self._make_service(space_guid, package, plan_id) db_cf.set_instance_for_service(instance_id, service['?']['id'], environment_id, tenant) + # NOTE(Kezar): Here we are going through JSON and add ids where - # it's necessary + # it's necessary. Before that we need to drop '?' key from parameters + # dictionary as far it contains murano package related info which is + # necessary in our scenario + if '?' in parameters.keys(): + parameters.pop('?', None) + LOG.warning(_LW("Incorrect input parameters. Package related " + "parameters shouldn't be passed through Cloud " + "Foundry")) params = [parameters] while params: a = params.pop()