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

    https://github.com/apache/brooklyn-server/pull/879#discussion_r149616593
  
    --- Diff: 
core/src/main/java/org/apache/brooklyn/core/mgmt/internal/AbstractManagementContext.java
 ---
    @@ -536,8 +538,52 @@ public BrooklynObject lookup(String id) {
             result = getLocationManager().getLocation(id);
             if (result!=null && type.isInstance(result)) return (T)result;
     
    -        // TODO policies, enrichers, feeds; bundles?
    -        return null;
    +        return lookup((o) -> { return type.isInstance(o) && 
Objects.equal(id, o.getId()); });
    --- End diff --
    
    not bad at all, and only used for debugging and tests


---

Reply via email to