Skip to content

Commit

Permalink
Fix: labels field for gcp_storage_bucket table. #115 (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
LalitLab committed Feb 22, 2021
1 parent 79d6431 commit a29fe8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions gcp-test/tests/gcp_storage_bucket/test-turbot-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"akas": [
"{{ output.resource_aka.value }}"
],
"labels": {
"name": "test"
},
"name": "{{ resourceName }}",
"tags": {
"name": "test"
Expand Down
2 changes: 1 addition & 1 deletion gcp-test/tests/gcp_storage_bucket/test-turbot-query.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
select name, title, akas, tags
select name, title, akas, labels, tags
from gcp.gcp_storage_bucket
where akas::text = '["{{ output.resource_aka.value }}"]'
2 changes: 1 addition & 1 deletion gcp/table_gcp_storage_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func tableGcpStorageBucket(_ context.Context) *plugin.Table {
{
Name: "labels",
Description: "Labels that apply to this bucket.",
Type: proto.ColumnType_STRING,
Type: proto.ColumnType_JSON,
},
{
Name: "log_bucket",
Expand Down

0 comments on commit a29fe8a

Please sign in to comment.