From 09b55286dd3d3141ef92183fbac87ec710be591b Mon Sep 17 00:00:00 2001 From: Matthew R Kasun Date: Fri, 13 Oct 2023 11:39:54 -0400 Subject: [PATCH] Net 662 convert pka to seconds vice nsec (#2627) * force listenport/persisentkeepalive to defaults if 0 during migration * convert pka to seconds vice nsec --- controllers/migrate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/migrate.go b/controllers/migrate.go index 7c7b25d5..d57b79f2 100644 --- a/controllers/migrate.go +++ b/controllers/migrate.go @@ -154,7 +154,7 @@ func convertLegacyHostNode(legacy models.LegacyNode) (models.Host, models.Node) host.IsDocker = models.ParseBool(legacy.IsDocker) host.IsK8S = models.ParseBool(legacy.IsK8S) host.IsStatic = models.ParseBool(legacy.IsStatic) - host.PersistentKeepalive = time.Duration(legacy.PersistentKeepalive) + host.PersistentKeepalive = time.Duration(legacy.PersistentKeepalive) * time.Second if host.PersistentKeepalive == 0 { host.PersistentKeepalive = models.DefaultPersistentKeepAlive }