getCleanClusterName fixed (#78)

This commit is contained in:
siddhikhapare
2022-11-08 15:37:30 +05:30
committed by GitHub
parent f29800ed5b
commit 96a7a429e1

View File

@@ -133,7 +133,7 @@ function getCleanClusterName(rawClusterName) {
if (rawClusterName.indexOf('arn') === 0) { if (rawClusterName.indexOf('arn') === 0) {
// AWS cluster // AWS cluster
const clusterSplit = rawClusterName.split(':') const clusterSplit = rawClusterName.split(':')
const clusterName = clusterSplit.at(-1).split("/").at(-1) const clusterName = clusterSplit.slice(-1)[0].replace('cluster/','')
const region = clusterSplit.at(-3) const region = clusterSplit.at(-3)
return region + "/" + clusterName + ' [AWS]' return region + "/" + clusterName + ' [AWS]'
} }