Provisioning: fixing some checks in config (#110729)

This commit is contained in:
Daniele Stefano Ferru
2025-09-05 23:27:35 +00:00
committed by GitHub
parent 62cc0f9c0e
commit 04c3d9bff1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -145,11 +145,11 @@ func setupFromConfig(cfg *setting.Cfg) (controllerCfg *provisioningControllerCon
}
dashboardsServerURL := operatorSec.Key("dashboards_server_url").String()
if provisioningServerURL == "" {
if dashboardsServerURL == "" {
return nil, fmt.Errorf("dashboards_server_url is required in [operator] section")
}
foldersServerURL := operatorSec.Key("folders_server_url").String()
if provisioningServerURL == "" {
if foldersServerURL == "" {
return nil, fmt.Errorf("folders_server_url is required in [operator] section")
}