Provisioning: Fix bug in config reading (#110703)
This commit is contained in:
@@ -282,7 +282,7 @@ func setupUnifiedStorageClient(cfg *setting.Cfg, tracer tracing.Tracer, resource
|
||||
// Connect to Index
|
||||
indexConn := conn
|
||||
indexAddress := unifiedStorageSec.Key("grpc_index_address").String()
|
||||
if indexAddress == "" {
|
||||
if indexAddress != "" {
|
||||
indexConn, err = unified.GrpcConn(indexAddress, registry)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("create unified storage index gRPC connection: %w", err)
|
||||
|
||||
Reference in New Issue
Block a user