Bug 366: Filter out rift ro from back-end results 71/5571/1
authorLaurence Maultsby <laurence.maultsby@riftio.com>
Wed, 11 Oct 2017 22:55:48 +0000 (18:55 -0400)
committerLaurence Maultsby <laurence.maultsby@riftio.com>
Thu, 12 Oct 2017 00:11:37 +0000 (20:11 -0400)
Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
skyquake/plugins/launchpad/src/instantiate/instantiateStore.js

index 90484bd..fecdff9 100644 (file)
@@ -189,7 +189,7 @@ class LaunchNetworkServiceStore {
         Alt.actions.global.hideScreenLoader.defer();
         let ROAccounts = [];
         this.setState({
-            resourceOrchestrators: ROAccounts.concat(data),
+            resourceOrchestrators: ROAccounts.concat(data).filter(function(r){ return r.name != "rift" }),
             selectedResourceOrchestrator: data[0],
             dataCenterID: data && data[0] && data[0].datacenters && data[0].datacenters.datacenters && data[0].datacenters.datacenters[0] && data[0].datacenters.datacenters[0].name,
             dataCenterType:  data && data[0] && data[0].datacenters && data[0].datacenters.datacenters && data[0].datacenters.datacenters[0] && data[0].datacenters.datacenters[0]['datacenter-type'],