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

    https://github.com/apache/brooklyn-library/pull/44#discussion_r71323278
  
    --- Diff: 
software/nosql/src/main/java/org/apache/brooklyn/entity/nosql/riak/RiakNodeImpl.java
 ---
    @@ -99,15 +108,51 @@ public boolean isPackageDownloadUrlProvided() {
     
         @Override
         protected Collection<Integer> getRequiredOpenPorts() {
    -        // TODO this creates a huge list of inbound ports; much better to 
define on a security group using range syntax!
    -        int erlangRangeStart = 
getConfig(ERLANG_PORT_RANGE_START).iterator().next();
    -        int erlangRangeEnd = 
getConfig(ERLANG_PORT_RANGE_END).iterator().next();
    +        Integer erlangRangeStart = config().get(ERLANG_PORT_RANGE_START);
    +        Integer erlangRangeEnd = config().get(ERLANG_PORT_RANGE_END);
    +        sensors().set(ERLANG_PORT_RANGE_START, erlangRangeStart);
    +        sensors().set(ERLANG_PORT_RANGE_END, erlangRangeEnd);
    +
    +        boolean configureInternalNetworking = 
config().get(CONFIGURE_INTERNAL_NETWORKING);
    --- End diff --
    
    I'd do the 
`Boolean.TRUE.equals(config().get(CONFIGURE_INTERNAL_NETWORKING))`, in case of 
null.


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