mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-04 08:06:37 +00:00
Merge remote-tracking branch 'origin/fix/export-mgmt-config-url' into deploy/permissions-account
This commit is contained in:
@@ -220,6 +220,10 @@ func generateAccountSQLTypes(account *types.Account) {
|
||||
account.SetupKeysG = append(account.SetupKeysG, *key)
|
||||
}
|
||||
|
||||
if len(account.SetupKeys) != len(account.SetupKeysG) {
|
||||
log.Warnf("SetupKeysG length mismatch for account %s", account.Id)
|
||||
}
|
||||
|
||||
for id, peer := range account.Peers {
|
||||
peer.ID = id
|
||||
account.PeersG = append(account.PeersG, *peer)
|
||||
|
||||
@@ -148,6 +148,10 @@ func runLargeTest(t *testing.T, store Store) {
|
||||
account.NameServerGroups[nameserver.ID] = nameserver
|
||||
|
||||
setupKey, _ := types.GenerateDefaultSetupKey()
|
||||
_, exists := account.SetupKeys[setupKey.Key]
|
||||
if exists {
|
||||
t.Errorf("setup key already exists")
|
||||
}
|
||||
account.SetupKeys[setupKey.Key] = setupKey
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user