Skip to content

Commit

Permalink
🐛 Fix wrong resource name for sql firewall rules.
Browse files Browse the repository at this point in the history
Signed-off-by: Preslav <[email protected]>
  • Loading branch information
preslavgerchev committed Jan 27, 2024
1 parent c360d7e commit 4eae7f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions providers/azure/resources/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down Expand Up @@ -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)),
Expand Down
2 changes: 1 addition & 1 deletion providers/azure/resources/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit 4eae7f8

Please sign in to comment.