mirror of https://github.com/apache/jclouds.git
Fix for iptonetworklist (was incorrectly sending ipnetworklist)
This commit is contained in:
parent
8c4e74296d
commit
0cf4d2b35b
|
@ -129,8 +129,8 @@ public class DeployVirtualMachineOptions extends AccountInDomainOptions {
|
||||||
public DeployVirtualMachineOptions ipsToNetworks(Map<String, String> ipsToNetworks) {
|
public DeployVirtualMachineOptions ipsToNetworks(Map<String, String> ipsToNetworks) {
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String ip : ipsToNetworks.keySet()) {
|
for (String ip : ipsToNetworks.keySet()) {
|
||||||
this.queryParameters.replaceValues(String.format("ipnetworklist[%d].ip", count), ImmutableSet.of(ip));
|
this.queryParameters.replaceValues(String.format("iptonetworklist[%d].ip", count), ImmutableSet.of(ip));
|
||||||
this.queryParameters.replaceValues(String.format("ipnetworklist[%d].networkid", count),
|
this.queryParameters.replaceValues(String.format("iptonetworklist[%d].networkid", count),
|
||||||
ImmutableSet.of("" + ipsToNetworks.get(ip)));
|
ImmutableSet.of("" + ipsToNetworks.get(ip)));
|
||||||
count += 1;
|
count += 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue