Skip to content

Commit

Permalink
feat: Update the code base
Browse files Browse the repository at this point in the history
  • Loading branch information
ZPascal committed Aug 7, 2024
1 parent 14aa8c6 commit a577b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/inputs/azure_monitor/azure_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ func (am *AzureMonitor) SampleConfig() string {
// Init is for setup, and validating config.
func (am *AzureMonitor) Init() error {
var clientOptions azcore.ClientOptions
switch cloudOption := am.CloudOption; cloudOption {
switch am.CloudOption {
case "AzureChina":
clientOptions = azcore.ClientOptions{Cloud: cloud.AzureChina}
case "AzureGovernment":
clientOptions = azcore.ClientOptions{Cloud: cloud.AzureGovernment}
case "", "AzurePublic":
clientOptions = azcore.ClientOptions{Cloud: cloud.AzurePublic}
default:
return fmt.Errorf("unknown cloud option: %s", cloudOption)
return fmt.Errorf("unknown cloud option: %s", am.CloudOption)
}

var err error
Expand Down

0 comments on commit a577b15

Please sign in to comment.