From d300a18eead022195626fc0739d7a297c42f68e4 Mon Sep 17 00:00:00 2001 From: vj Date: Fri, 17 Jan 2025 12:51:23 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20dict=20translation=20for?= =?UTF-8?q?=20cloudrun=20service=20traffic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- providers/gcp/resources/cloudrun.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/providers/gcp/resources/cloudrun.go b/providers/gcp/resources/cloudrun.go index de191b4426..6e3f200e8b 100644 --- a/providers/gcp/resources/cloudrun.go +++ b/providers/gcp/resources/cloudrun.go @@ -7,6 +7,7 @@ import ( "context" "errors" "fmt" + "strconv" "sync" "go.mondoo.com/cnquery/v11/providers-sdk/v1/plugin" @@ -313,7 +314,7 @@ func (g *mqlGcpProjectCloudRunService) services() ([]interface{}, error) { mqlTraffic = append(mqlTraffic, map[string]interface{}{ "type": t.Type.String(), "revision": t.Revision, - "percent": t.Percent, + "percent": strconv.Itoa(int(t.Percent)), "tag": t.Tag, }) } @@ -337,7 +338,7 @@ func (g *mqlGcpProjectCloudRunService) services() ([]interface{}, error) { mqlTrafficStatuses = append(mqlTrafficStatuses, map[string]interface{}{ "type": t.Type.String(), "revision": t.Revision, - "percent": t.Percent, + "percent": strconv.Itoa(int(t.Percent)), "tag": t.Tag, "uri": t.Uri, })