From d51304f9dfd018d778ed2f52fc3c4651c5bbe416 Mon Sep 17 00:00:00 2001 From: KIRAN KASHALKAR Date: Mon, 23 Jan 2017 13:41:12 -0500 Subject: [PATCH] RIFT-15418: Removal of gateway-address in input-params result in failed string Signed-off-by: KIRAN KASHALKAR --- .../src/instantiate/instantiateParameters.jsx | 67 ++++++++++--------- .../src/instantiate/instantiateStore.js | 5 ++ 2 files changed, 39 insertions(+), 33 deletions(-) diff --git a/skyquake/plugins/launchpad/src/instantiate/instantiateParameters.jsx b/skyquake/plugins/launchpad/src/instantiate/instantiateParameters.jsx index 0e5fa1fbb..5681851a1 100644 --- a/skyquake/plugins/launchpad/src/instantiate/instantiateParameters.jsx +++ b/skyquake/plugins/launchpad/src/instantiate/instantiateParameters.jsx @@ -44,52 +44,53 @@ class Instantiate extends Component { - + /> + ) } diff --git a/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js b/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js index 2e6e24236..e779beb16 100644 --- a/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js +++ b/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js @@ -484,6 +484,11 @@ class LaunchNetworkServiceStore { let value = e.target.nodeName == "SELECT" ? JSON.parse(e.target.value) : e.target.value; self.ipProfiles[i]['ip-profile-params'][key] = value; + if (value == '') { + // Don't send this key + delete self.ipProfiles[i]['ip-profile-params'][key]; + } + self.setState({ipProfiles:self.ipProfiles}); } }, -- 2.17.1