Skip to content

Commit

Permalink
Fixed Issue querying ACK table when no tags set on cluster Closes #425 (
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthaI authored Jun 12, 2024
1 parent b5798a6 commit 6c3bfa7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions alicloud/table_alicloud_cs_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,14 +504,12 @@ func getCsKubernetesClusterARN(ctx context.Context, d *plugin.QueryData, h *plug
//// TRANSFORM FUNCTIONS

func csKubernetesClusterAkaTagsToMap(_ context.Context, d *transform.TransformData) (interface{}, error) {
tags := d.Value.([]interface{})
if tags == nil {
if d.Value == nil {
return nil, nil
}

tags := d.Value.([]interface{})

if len(tags) == 0 {
return nil, nil
}
turbotTagsMap := map[string]string{}
for _, i := range tags {
tagDetails := i.(map[string]interface{})
Expand Down

0 comments on commit 6c3bfa7

Please sign in to comment.