ui: Better error message checking for cross dc connect check (#8320)

pull/8324/head
John Cowen 4 years ago committed by GitHub
parent 3bc27df844
commit 061276007e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save