Include parameters section in env config

When getting the list of environment parameters, include also
parameters from 'parameters' section of the environment

Closes-Bug: #1660285
Change-Id: I74f82e83d9d091bb6e0201294c2fa4564f78b328
This commit is contained in:
Jiri Tomasek 2017-01-30 12:53:51 +01:00
parent f9cac317c7
commit cd21faa52f
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ export const getEnvironmentParameters = createSelector(
.filter(r => environment.resourceRegistry.keySeq().includes(r.type))
// collect parameter names from those resources
.reduce((result, resource) => result.union(resource.parameters), Set())
// add parameters from environment's 'parameters' section to the list
.union(environment.parameterDefaults.keySeq())
.toMap()
// convert list of parameter names to map of actual parameter records
.update(filterParameters(parameters));