Refactor edgevpn integration (#549)

Just a cleanup left from last weeks work

---------

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
Mauro Morales
2024-04-29 12:03:22 +02:00
committed by GitHub
parent 014050b39f
commit ca56b8f4ab
4 changed files with 6 additions and 90 deletions

View File

@@ -11,6 +11,7 @@ import (
"github.com/creack/pty"
"github.com/gliderlabs/ssh"
"github.com/mudler/edgevpn/cmd"
"github.com/mudler/edgevpn/pkg/logger"
"github.com/mudler/edgevpn/pkg/node"
"github.com/mudler/edgevpn/pkg/services"
@@ -24,7 +25,7 @@ func startRecoveryService(ctx context.Context, loglevel string, c *cliV2.Context
return err
}
nc := configFromContext(c)
nc := cmd.ConfigFromContext(c)
lvl, err := log.LevelFromString(loglevel)
if err != nil {