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

    https://github.com/apache/brooklyn-server/pull/211#discussion_r70589881
  
    --- Diff: 
locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/JcloudsLocation.java
 ---
    @@ -735,7 +737,11 @@ protected MachineLocation obtainOnce(ConfigBag setup) 
throws NoMachinesAvailable
                         if (LOG.isDebugEnabled())
                             LOG.debug("NOTE: unused flags passed to obtain VM 
in "+setup.getDescription()+": "
                                     + 
Sanitizer.sanitize(setup.getUnusedConfig()));
    -                
    +                Object callerContext = 
setup.get(JcloudsLocationConfig.CALLER_CONTEXT);
    +                if (callerContext != null && callerContext instanceof 
Entity) {
    +                    Entity callerContextEntity = 
(Entity)setup.get(JcloudsLocationConfig.CALLER_CONTEXT);
    --- End diff --
    
    Minor: don't call `setup.get()` again - just use your `callerContext` 
variable.


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

Reply via email to