From 2e98f2c41d5a258eddc4a124a4457c671a095de6 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 21 Sep 2010 19:37:32 -0700 Subject: [PATCH] for bug 6153 - prevent startIP being passed twice to UpdatePod API. --- ui/scripts/cloud.core.configuration.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/scripts/cloud.core.configuration.js b/ui/scripts/cloud.core.configuration.js index 4ec000bcc7b..921ce540ada 100644 --- a/ui/scripts/cloud.core.configuration.js +++ b/ui/scripts/cloud.core.configuration.js @@ -597,7 +597,9 @@ function showConfigurationTab() { if(newStartip != oldStartip) array1.push("&startIp="+encodeURIComponent(newStartip)); if(newEndip != oldEndip && newEndip != null && newEndip.length > 0) { - array1.push("&startIp="+encodeURIComponent(newStartip)); //startIp needs to be passed to updatePod API when endIp is passed to updatePod API. + if(newStartip == oldStartip) { + array1.push("&startIp="+encodeURIComponent(newStartip)); //startIp needs to be passed to updatePod API when endIp is passed to updatePod API. + } array1.push("&endIp="+encodeURIComponent(newEndip)); } if(newGateway != oldGateway && newGateway != null && newGateway.length > 0)