Skip to content

Commit f68938d

Browse files
authored
fix(pci.projects.kube): use api region (#1099)
ref: MBP-523, DTRUN-2403
1 parent 3fa84a5 commit f68938d

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

packages/manager/modules/pci/src/projects/project/kubernetes/details/constants.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ export const PROCESSING_STATUS = [
99
'RESETTING',
1010
];
1111

12-
export const REGION = 'GRA5';
13-
1412
export const STATUS = {
1513
READY: 'READY',
1614
INSTALLING: 'INSTALLING',
@@ -24,6 +22,5 @@ export default {
2422
CONFIG_FILENAME,
2523
DOC_URL,
2624
PROCESSING_STATUS,
27-
REGION,
2825
STATUS,
2926
};

packages/manager/modules/pci/src/projects/project/kubernetes/details/details.routing.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { REGION } from './constants';
2-
31
export default /* @ngInject */ ($stateProvider) => {
42
$stateProvider
53
.state('pci.projects.project.kubernetes.details', {
@@ -14,11 +12,7 @@ export default /* @ngInject */ ($stateProvider) => {
1412
) => OvhApiCloudProjectKube.v6().get({
1513
serviceName: projectId,
1614
kubeId,
17-
}).$promise
18-
.then(cluster => ({
19-
...cluster,
20-
region: REGION,
21-
})),
15+
}).$promise,
2216

2317
goToKubernetesDetails: ($state, CucCloudMessage, kubeId, projectId) => (message = false, type = 'success') => {
2418
const reload = message && type === 'success';

0 commit comments

Comments
 (0)