GitHub user duncangrant opened a pull request: https://github.com/apache/incubator-brooklyn/pull/1051
EntitySpec duplication should include children If the memberspec of a dynamiccluster had a child entityspec then it would not be possible to set or expand the cluster to more than 1 node. This is because when addentity is called the parent entity is set on the childspec. The dynamic cluster uses EntitySpec.create to duplicate the memberspec however this doesn't duplicate any children so the original and duplicate entityspecs share children. When using EntitySpec.create to duplicate an entityspec this change duplicates children rather than attaching original child specs. https://issues.apache.org/jira/browse/BROOKLYN-192 You can merge this pull request into a Git repository by running: $ git pull https://github.com/duncangrant/incubator-brooklyn fix/entityspec-duplication Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-brooklyn/pull/1051.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1051 ---- commit 4c21e4ffff61033bf5a7875224c6ac5726fa358b Author: Duncan Grant <duncan.gr...@cloudsoftcorp.com> Date: 2015-11-19T16:38:12Z EntitySpec duplication includes children When using EntitySpec.create to duplicate an entityspec this change duplicates children rather than attaching original child specs. ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---