Github user aledsage commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/592#discussion_r28205057
--- Diff:
software/base/src/main/java/brooklyn/entity/basic/SoftwareProcessImpl.java ---
@@ -429,8 +432,21 @@ protected final void callStartHooks() {}
if (PortRange.class.isAssignableFrom(k.getType())) {
PortRange p = (PortRange)getConfig(k);
if (p != null && !p.isEmpty())
ports.add(p.iterator().next());
+ }
+ }
+
+ Map<String, Object> provisioningProperties =
getConfig(PROVISIONING_PROPERTIES);
+ if(provisioningProperties.containsKey("required.ports")){
+ Object requiredPorts =
provisioningProperties.get("required.ports");
+ if (requiredPorts instanceof Integer){
+ ports.add((Integer)requiredPorts);
+ }else if (requiredPorts instanceof List) {
--- End diff --
Better to accept `Iterable` rather than just list?
---
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.
---