You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by "Aled Sage (JIRA)" <ji...@apache.org> on 2017/04/20 15:44:04 UTC
[jira] [Created] (BROOKLYN-482) Config Key default value (in yaml)
of type List is mutable
Aled Sage created BROOKLYN-482:
----------------------------------
Summary: Config Key default value (in yaml) of type List is mutable
Key: BROOKLYN-482
URL: https://issues.apache.org/jira/browse/BROOKLYN-482
Project: Brooklyn
Issue Type: Bug
Reporter: Aled Sage
Priority: Minor
In version 0.11.0-rc2...
As described in https://github.com/apache/brooklyn-docs/pull/172, it's important that config key default values are immutable.
However, in a yaml catalog item or blueprint if you declare a config key of type {{java.util.List}} (or Set, Collection or Map) with {{[]}} then that is mutable.
For example:
{noformat}
brooklyn.catalog:
itemType: entity
items:
- id: entity-with-keys
item:
type: server
brooklyn.parameters:
- name: my.list.key
type: java.util.List
default: ["myDefaultVal"]
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)