mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
Disable force jsonfile variable (#1611)
This enables windows management tests Added another DNS server to the dns server tests
This commit is contained in:
@@ -103,7 +103,14 @@ func NewStoreFromJson(dataDir string, metrics telemetry.AppMetrics) (Store, erro
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch kind := getStoreEngineFromEnv(); kind {
|
||||
// if store engine is not set in the config we first try to evaluate NETBIRD_STORE_ENGINE
|
||||
kind := getStoreEngineFromEnv()
|
||||
if kind == "" {
|
||||
// NETBIRD_STORE_ENGINE is not set we evaluate default based on dataDir
|
||||
kind = getStoreEngineFromDatadir(dataDir)
|
||||
}
|
||||
|
||||
switch kind {
|
||||
case FileStoreEngine:
|
||||
return fstore, nil
|
||||
case SqliteStoreEngine:
|
||||
|
||||
Reference in New Issue
Block a user