Github user neykov commented on a diff in the pull request:
https://github.com/apache/brooklyn-server/pull/151#discussion_r64207370
--- Diff:
core/src/main/java/org/apache/brooklyn/util/core/config/ConfigBag.java ---
@@ -126,7 +127,11 @@ public void markUsed(String key) {
/** As {@link #newInstanceExtending(ConfigBag)} but also putting the
supplied values. */
@Beta
public static ConfigBag newInstanceExtending(final ConfigBag
configBag, Map<?,?> optionalAdditionalValues) {
- return
newInstanceExtending(configBag).putAll(optionalAdditionalValues);
+ if (optionalAdditionalValues != null) {
+ return
newInstance(CollectionHelpers.mergeNestedMaps(configBag.getAllConfig(),
(Map<String, Object>) optionalAdditionalValues));
+ } else {
+ return newInstanceExtending(configBag);
+ }
--- End diff --
Or even more constrained to `templateOptions`.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---