PortForwardingRule should use commas to separate the CIDR list elements

This commit is contained in:
Richard Downer 2011-12-22 10:34:06 +00:00
parent 68820d5d61
commit eca39408ef
1 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ public class PortForwardingRule implements Comparable<PortForwardingRule> {
this.virtualMachineDisplayName = virtualMachineDisplayName; this.virtualMachineDisplayName = virtualMachineDisplayName;
this.virtualMachineId = virtualMachineId; this.virtualMachineId = virtualMachineId;
this.virtualMachineName = virtualMachineName; this.virtualMachineName = virtualMachineName;
this.CIDRs = Joiner.on(' ').join(CIDRs); this.CIDRs = Joiner.on(',').join(CIDRs);
this.privateEndPort = privateEndPort; this.privateEndPort = privateEndPort;
this.publicEndPort = publicEndPort; this.publicEndPort = publicEndPort;
} }
@ -240,7 +240,7 @@ public class PortForwardingRule implements Comparable<PortForwardingRule> {
* @return the cidr list to forward traffic from * @return the cidr list to forward traffic from
*/ */
public Set<String> getCIDRs() { 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();
} }
/** /**