Skip to content

Commit 1ccab59

Browse files
authored
fix(azure): Skip resource if SiteConfig is nil (#2578)
to avoid a panic.
1 parent e502997 commit 1ccab59

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/source/azure/resources/services/web/vnet_connections.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ func fetchWebVnetConnections(ctx context.Context, meta schema.ClientMeta, parent
9292
svc := meta.(*client.Client).Services().Web.VnetConnections
9393

9494
site := parent.Item.(web.Site)
95+
if site.SiteConfig == nil {
96+
return nil
97+
}
98+
9599
response, err := svc.GetVnetConnection(ctx, *site.ResourceGroup, *site.Name, *site.SiteConfig.VnetName)
96100
if err != nil {
97101
return err

0 commit comments

Comments
 (0)