From cf9469f20157baff120e20b48531a85444849815 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Thu, 16 Jul 2020 18:27:34 +0100 Subject: [PATCH] ui: Better error message checking for cross dc connect check (#8320) --- ui-v2/app/services/repository/discovery-chain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-v2/app/services/repository/discovery-chain.js b/ui-v2/app/services/repository/discovery-chain.js index 0d114a7b2f..704a42e549 100644 --- a/ui-v2/app/services/repository/discovery-chain.js +++ b/ui-v2/app/services/repository/discovery-chain.js @@ -19,7 +19,7 @@ export default RepositoryService.extend({ const body = get(e, 'errors.firstObject.detail').trim(); switch (code) { case '500': - if (datacenter !== null && body === ERROR_MESH_DISABLED) { + if (datacenter !== null && body.endsWith(ERROR_MESH_DISABLED)) { set(datacenter, 'MeshEnabled', false); } return;