Refresh inherited config when setting parent

Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/32d1432b
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/32d1432b
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/32d1432b

Branch: refs/heads/0.5.0
Commit: 32d1432bd6812696d796a927ae839cc2f2d8c46a
Parents: 0136a41
Author: Andrew Kennedy <[email protected]>
Authored: Tue Apr 16 01:08:37 2013 +0100
Committer: Andrew Kennedy <[email protected]>
Committed: Tue Apr 23 23:31:46 2013 +0100

----------------------------------------------------------------------
 core/src/main/java/brooklyn/entity/basic/AbstractEntity.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/32d1432b/core/src/main/java/brooklyn/entity/basic/AbstractEntity.groovy
----------------------------------------------------------------------
diff --git a/core/src/main/java/brooklyn/entity/basic/AbstractEntity.groovy 
b/core/src/main/java/brooklyn/entity/basic/AbstractEntity.groovy
index c9ff73a..775b905 100644
--- a/core/src/main/java/brooklyn/entity/basic/AbstractEntity.groovy
+++ b/core/src/main/java/brooklyn/entity/basic/AbstractEntity.groovy
@@ -440,7 +440,7 @@ public abstract class AbstractEntity extends 
GroovyObjectSupport implements Enti
         parent = entity
         //previously tested entity!=null but that should be guaranteed?
         entity.addChild(getProxyIfAvailable())
-        
configsInternal.setInheritedConfig(((EntityInternal)entity).getAllConfig());
+        refreshInheritedConfig();
         previouslyOwned = true
         
         getApplication()

Reply via email to