Skip to content

Commit

Permalink
🐛 fix panic in azure discovery (#2064)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeffrey authored Oct 3, 2023
1 parent 6939b49 commit 45e4e07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions providers/azure/resources/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,9 @@ func getSubConfig(rootConf *inventory.Config, sub subscriptions.Subscription) *i
// note: we make sure to wipe out the discovery here, we don't want to re-discover when
// connecting to an asset
cfg.Discover = nil
if cfg.Options == nil {
cfg.Options = map[string]string{}
}
cfg.Options[connection.OptionSubscriptionID] = *sub.SubscriptionID
cfg.Options[connection.OptionTenantID] = *sub.TenantID
return cfg
Expand Down

0 comments on commit 45e4e07

Please sign in to comment.