From 4eae7f8c825723234b5e7649a6f42e4af06a6ed3 Mon Sep 17 00:00:00 2001 From: Preslav Date: Sat, 27 Jan 2024 16:01:52 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20wrong=20resource=20name=20?= =?UTF-8?q?for=20sql=20firewall=20rules.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Preslav --- providers/azure/resources/mysql.go | 4 ++-- providers/azure/resources/postgresql.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/providers/azure/resources/mysql.go b/providers/azure/resources/mysql.go index b9def60731..a56db54e5a 100644 --- a/providers/azure/resources/mysql.go +++ b/providers/azure/resources/mysql.go @@ -208,7 +208,7 @@ func (a *mqlAzureSubscriptionMySqlServiceServer) firewallRules() ([]interface{}, return nil, err } for _, entry := range page.Value { - mqlFireWallRule, err := CreateResource(a.MqlRuntime, "azure.subscription.sql.firewallrule", + mqlFireWallRule, err := CreateResource(a.MqlRuntime, "azure.subscription.sqlService.firewallrule", map[string]*llx.RawData{ "id": llx.StringData(convert.ToString(entry.ID)), "name": llx.StringData(convert.ToString(entry.Name)), @@ -351,7 +351,7 @@ func (a *mqlAzureSubscriptionMySqlServiceFlexibleServer) firewallRules() ([]inte return nil, err } for _, entry := range page.Value { - mqlFireWallRule, err := CreateResource(a.MqlRuntime, "azure.subscription.sql.firewallrule", + mqlFireWallRule, err := CreateResource(a.MqlRuntime, "azure.subscription.sqlService.firewallrule", map[string]*llx.RawData{ "id": llx.StringData(convert.ToString(entry.ID)), "name": llx.StringData(convert.ToString(entry.Name)), diff --git a/providers/azure/resources/postgresql.go b/providers/azure/resources/postgresql.go index 52a2d1a2f4..f8c4bb562c 100644 --- a/providers/azure/resources/postgresql.go +++ b/providers/azure/resources/postgresql.go @@ -169,7 +169,7 @@ func (a *mqlAzureSubscriptionPostgreSqlServiceServer) firewallRules() ([]interfa return nil, err } for _, entry := range page.Value { - mqlFireWallRule, err := CreateResource(a.MqlRuntime, "azure.subscription.sql.firewallrule", + mqlFireWallRule, err := CreateResource(a.MqlRuntime, "azure.subscription.sqlService.firewallrule", map[string]*llx.RawData{ "id": llx.StringData(convert.ToString(entry.ID)), "name": llx.StringData(convert.ToString(entry.Name)),