mirror of https://github.com/apache/jclouds.git
PortForwardingRule should use commas to separate the CIDR list elements
This commit is contained in:
parent
68820d5d61
commit
eca39408ef
|
@ -156,7 +156,7 @@ public class PortForwardingRule implements Comparable<PortForwardingRule> {
|
|||
this.virtualMachineDisplayName = virtualMachineDisplayName;
|
||||
this.virtualMachineId = virtualMachineId;
|
||||
this.virtualMachineName = virtualMachineName;
|
||||
this.CIDRs = Joiner.on(' ').join(CIDRs);
|
||||
this.CIDRs = Joiner.on(',').join(CIDRs);
|
||||
this.privateEndPort = privateEndPort;
|
||||
this.publicEndPort = publicEndPort;
|
||||
}
|
||||
|
@ -240,7 +240,7 @@ public class PortForwardingRule implements Comparable<PortForwardingRule> {
|
|||
* @return the cidr list to forward traffic from
|
||||
*/
|
||||
public Set<String> getCIDRs() {
|
||||
return CIDRs != null ? ImmutableSet.copyOf(Splitter.on(' ').split(CIDRs)) : ImmutableSet.<String> of();
|
||||
return CIDRs != null ? ImmutableSet.copyOf(Splitter.on(',').split(CIDRs)) : ImmutableSet.<String> of();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue