jpictl: refactor zones loading

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2023-08-25 21:31:15 +01:00
parent 2043708949
commit 26c49dff72
3 changed files with 9 additions and 6 deletions
+1 -3
View File
@@ -9,8 +9,6 @@ import (
"github.com/burntSushi/toml"
"github.com/spf13/cobra"
"gopkg.in/yaml.v3"
"git.jpi.io/amery/jpictl/pkg/zones"
)
// Encoder represents an object that encodes another internally
@@ -60,7 +58,7 @@ var dumpCmd = &cobra.Command{
var buf bytes.Buffer
var enc Encoder
m, err := zones.New(cfg.Base, cfg.Domain)
m, err := cfg.LoadZones()
if err != nil {
return err
}