Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C051F200AF1 for ; Tue, 24 May 2016 13:55:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BF1A3160A2F; Tue, 24 May 2016 11:55:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2EB42160A2D for ; Tue, 24 May 2016 13:55:40 +0200 (CEST) Received: (qmail 73742 invoked by uid 500); 24 May 2016 11:55:39 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 73731 invoked by uid 99); 24 May 2016 11:55:39 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2016 11:55:39 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AEE8ADFB14; Tue, 24 May 2016 11:55:38 +0000 (UTC) From: aledsage To: dev@brooklyn.apache.org Reply-To: dev@brooklyn.apache.org References: In-Reply-To: Subject: [GitHub] brooklyn-server pull request: Merge Map values in Location config Content-Type: text/plain Message-Id: <20160524115538.AEE8ADFB14@git1-us-west.apache.org> Date: Tue, 24 May 2016 11:55:38 +0000 (UTC) archived-at: Tue, 24 May 2016 11:55:40 -0000 Github user aledsage commented on a diff in the pull request: https://github.com/apache/brooklyn-server/pull/151#discussion_r64376720 --- Diff: core/src/main/java/org/apache/brooklyn/util/core/config/ConfigBag.java --- @@ -126,7 +126,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); --- End diff -- As per @neykov 's comments, do we really want this change? I think we shouldn't do this, too intrusive. Better make the merging behaviour specific to provisioning.properties. Or even more constrained to templateOptions. I like the idea of the PR, but feel that it should be more constrained in scope. Either having this behaviour only for prosivioning.properties or even more to templateOptions It feels high risk. It's unclear what impact it will have on other users (e.g. someone writing a YAML entity that extends another entity, overriding a config key; for that particular example, we need to discuss it on dev@brooklyn a lot more first). --- 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 infrastructure@apache.org or file a JIRA ticket with INFRA. ---