Provisioning: fixing some checks in config (#110729)
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
@@ -215,7 +215,7 @@ func (rc *RepositoryController) handleDelete(ctx context.Context, obj *provision
|
||||
} else {
|
||||
err := rc.finalizer.process(ctx, repo, obj.Finalizers)
|
||||
if err != nil {
|
||||
logger.Warn("error running finalizer", "err")
|
||||
logger.Warn("error running finalizer", "err", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user