瀏覽代碼

Merge pull request #2271 from porter-dev/belanger/add-separate-aws-cluster-name

Make sure valid AWS cluster id is set for kube client
abelanger5 4 年之前
父節點
當前提交
ef1c45b3aa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      internal/models/integrations/aws.go

+ 1 - 1
internal/models/integrations/aws.go

@@ -133,7 +133,7 @@ func (a *AWSIntegration) GetBearerToken(
 	if shouldClusterIdOverride {
 	if shouldClusterIdOverride {
 		validClusterId = clusterID
 		validClusterId = clusterID
 	} else {
 	} else {
-		validClusterId := string(a.AWSClusterID)
+		validClusterId = string(a.AWSClusterID)
 
 
 		if validClusterId == "" {
 		if validClusterId == "" {
 			validClusterId = clusterID
 			validClusterId = clusterID