Github user grkvlt commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/287#discussion_r73682610
  
    --- Diff: 
core/src/main/java/org/apache/brooklyn/core/entity/AbstractEntity.java ---
    @@ -1698,6 +1698,7 @@ public void add(Policy policy) {
                 CatalogUtils.setCatalogItemIdOnAddition(AbstractEntity.this, 
policy);
                 policiesInternal.add((AbstractPolicy)policy);
                 ((AbstractPolicy)policy).setEntity(AbstractEntity.this);
    +            ConfigConstraints.assertValid(policy);
    --- End diff --
    
    No, this asserts that the `ConfigConstraints` on the policy are valid. It 
had to be moved to cope with the situation where some config keys had values 
that were resolvable only using the *entities* context. So it must happen 
*after* `setEntity()` is called on the policy. I fixed enrichers too, just for 
luck.


---
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.
---

Reply via email to