RIFT-14634: Removed extra quotes from DataCenter 39/339/1
authorLaurence Maultsby <laurence.maultsby@riftio.com>
Thu, 15 Sep 2016 17:17:15 +0000 (13:17 -0400)
committerLaurence Maultsby <laurence.maultsby@riftio.com>
Thu, 15 Sep 2016 17:17:15 +0000 (13:17 -0400)
Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
skyquake/plugins/launchpad/src/instantiate/instantiateStore.js
skyquake/skyquake.js

index 7d98079..96c134d 100644 (file)
@@ -293,7 +293,7 @@ class LaunchNetworkServiceStore {
             },
             updateSelectedDataCenter: (dataCenter) => {
                 self.setState({
-                    dataCenterID: dataCenter.target.value
+                    dataCenterID: JSON.parse(dataCenter.target.value)
                 });
             },
             placementGroupUpdate: (i, k, value) => {
@@ -421,7 +421,7 @@ class LaunchNetworkServiceStore {
                 if (!vnfCA[id]) {
                     vnfCA[id] = {};
                 }
-                vnfCA[id].datacenter = dataCenter.target.value;
+                vnfCA[id].datacenter = JSON.parse(dataCenter.target.value);
                 self.setState({
                     vnfdCloudAccounts: vnfCA
                 });
@@ -769,6 +769,7 @@ class LaunchNetworkServiceStore {
         });
         //Add Users
         payload['user'] = this.state.usersList;
+        // console.log(payload)
         this.launchNSR({
             'nsr': [payload]
         });
index 0e597d9..b9af78a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 
+ *
  *   Copyright 2016 RIFT.IO Inc
  *
  *   Licensed under the Apache License, Version 2.0 (the "License");