brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geomacy <...@git.apache.org>
Subject [GitHub] brooklyn-server pull request #562: Provide a scratchpad area per management ...
Date Tue, 28 Feb 2017 16:22:24 GMT
Github user geomacy commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/562#discussion_r103490624
  
    --- Diff: camp/camp-brooklyn/src/main/java/org/apache/brooklyn/camp/brooklyn/BrooklynCampPlatform.java
---
    @@ -65,7 +65,7 @@ public BrooklynCampPlatform(PlatformRootSummary root, ManagementContext
manageme
     
         /** finds and returns the {@link CampPlatform} registered for the management context,
or null if none */
         @Nullable public static CampPlatform findPlatform(ManagementContext mgmt) {
    -        return mgmt.getConfig().getConfig(BrooklynCampConstants.CAMP_PLATFORM);
    +        return (CampPlatform) mgmt.getScratchpad().get(BrooklynCampConstants.CAMP_PLATFORM);
    --- End diff --
    
    Don't need the cast, here and elsewhere.


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

Mime
View raw message