brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ahgittin <...@git.apache.org>
Subject [GitHub] incubator-brooklyn pull request: jclouds location customizer suppo...
Date Fri, 08 May 2015 16:56:54 GMT
Github user ahgittin commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/630#discussion_r29956261
  
    --- Diff: locations/jclouds/src/main/java/brooklyn/location/jclouds/JcloudsLocation.java
---
    @@ -1764,24 +1769,57 @@ public void release(SshMachineLocation machine) {
             LOG.info("Releasing machine {} in {}, instance id {}", new Object[] {machine,
this, instanceId});
     
             Exception tothrow = null;
    +
    +        if (machine instanceof JcloudsSshMachineLocation) {
    +            ConfigBag setup = config().getBag();
    +            for (JcloudsLocationCustomizer customizer : getCustomizers(setup)) {
    +                try {
    +                    customizer.preRelease((JcloudsSshMachineLocation) machine);
    +                } catch (Exception e) {
    +                    LOG.error("Problem invoking pre-release customizer "+customizer+"
for machine "+machine+" in "+this+", instance id "+instanceId+
    --- End diff --
    
    the others were trying to release aggressively, throwing afterwards.  i've duplicated
that pattern.


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