turbot / steampipe-plugin-alicloud

Use SQL to instantly query Alibaba Cloud resources across regions and accounts. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/turbot/alicloud
Apache License 2.0
12 stars 5 forks source link

Issue querying ACK table when no tags set on cluster #425

Closed vmdude closed 2 months ago

vmdude commented 2 months ago

Describe the bug When querying table alicloud_cs_kubernetes_cluster with a cluster without any tags, an error is thrown:

Error: ACK_CLUSTER: failed to populate column 'tags': rpc error: code = Internal desc = transform csKubernetesClusterAkaTagsToMap failed with panic interface conversion: interface {} is nil, not []interface {} (SQLSTATE HV000)

Steampipe version (steampipe -v)

steampipe -v                                            
Steampipe v0.21.4

Plugin version (steampipe plugin list)

 hub.steampipe.io/plugins/turbot/alicloud@latest | 0.21.0

To reproduce

Expected behavior Error should be catched, or empty tags list should be handled

Additional context Similar error were spot in https://github.com/turbot/steampipe-plugin-alicloud/issues/165 without required context, thus dismissed.

ParthaI commented 2 months ago

Hi @vmdude, Sorry to see that you are encountering the issue. I have raised a PR by addressing this issue.

It would be great if you would like to give it a try in the PR branch(issue-425) and share your feedback with us.

Steps to Give it a try in the PR branch:

Thanks!

vmdude commented 2 months ago

Hello @ParthaI ,

Sure I'll try this asap and let you know.

F.

vmdude commented 2 months ago

Awesome @ParthaI it works just fine 👍

ParthaI commented 2 months ago

Thank @vmdude, For the confirmation. 👍