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

    https://github.com/apache/incubator-brooklyn/pull/671#discussion_r31581287
  
    --- Diff: 
locations/jclouds/src/main/java/brooklyn/location/jclouds/JcloudsLocation.java 
---
    @@ -204,7 +205,8 @@
         private static final Pattern LIST_PATTERN = 
Pattern.compile("^\\[(.*)\\]$");
         private static final Pattern INTEGER_PATTERN = 
Pattern.compile("^\\d*$");
     
    -    private static boolean loggedSshKeysHint = false;
    +    private final AtomicBoolean loggedSshKeysHint = new 
AtomicBoolean(false);
    +    private final AtomicBoolean listedAvailableTemplatesOnNoSuchTemplate = 
new AtomicBoolean(false);
    --- End diff --
    
    Yes, I wasn't sure what to do to achieve the actual intent. `ThreadLocal` 
wouldn't work, maybe a `Map` with the location ID as the key? I wasn't sure 
whether the IDs would be the same for two `Location` instances generated by the 
management context for the same underlying location? 


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