ui: Better error message checking for cross dc connect check (#8320)
This commit is contained in:
parent
e93084be6c
commit
f26124d42c
|
@ -19,7 +19,7 @@ export default RepositoryService.extend({
|
||||||
const body = get(e, 'errors.firstObject.detail').trim();
|
const body = get(e, 'errors.firstObject.detail').trim();
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case '500':
|
case '500':
|
||||||
if (datacenter !== null && body === ERROR_MESH_DISABLED) {
|
if (datacenter !== null && body.endsWith(ERROR_MESH_DISABLED)) {
|
||||||
set(datacenter, 'MeshEnabled', false);
|
set(datacenter, 'MeshEnabled', false);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue