From e58b8c45e67b521ad35e63eb61c33effbe6323fd Mon Sep 17 00:00:00 2001 From: Guillaume Hyenne Date: Fri, 15 Nov 2024 12:50:05 +0100 Subject: [PATCH] fix(dedicated.vps): fix the access to vps dashboard with iam rules ref: MANAGER-16060 Signed-off-by: Guillaume Hyenne --- packages/manager/modules/vps/src/import/vps.service.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/manager/modules/vps/src/import/vps.service.js b/packages/manager/modules/vps/src/import/vps.service.js index 607cdd2f9ce9..7e2413600e70 100644 --- a/packages/manager/modules/vps/src/import/vps.service.js +++ b/packages/manager/modules/vps/src/import/vps.service.js @@ -1523,6 +1523,7 @@ export default /* @ngInject */ function VpsService( ) { return $http .get(`/services/${serviceId}`) - .then(({ data }) => data?.resource?.product?.name.includes('-resell')); + .then(({ data }) => data?.resource?.product?.name.includes('-resell')) + .catch(() => false); }; }