mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-22 16:07:11 +08:00
fix(go): skip default host auto update reset;
This commit is contained in:
@@ -412,10 +412,6 @@ func migrateHosts(ctx context.Context) error {
|
||||
}
|
||||
}
|
||||
|
||||
if _host.IsDefault && !_host.AutoUpdate {
|
||||
_host.AutoUpdate = true
|
||||
}
|
||||
|
||||
logger.Log(4, fmt.Sprintf("migrating host %s", _host.ID))
|
||||
|
||||
err = _host.Create(ctx)
|
||||
|
||||
Reference in New Issue
Block a user