From 0fa1474f6ccada8c43cdbce90cc770e00b2704d6 Mon Sep 17 00:00:00 2001 From: lauralani Date: Tue, 14 Mar 2023 10:37:31 +0100 Subject: [PATCH] add config parameter for powerdns integration --- cmd/root.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 0343be2..1711aab 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -62,8 +62,10 @@ func initConfig() { viper.SetConfigName("ipam") viper.SetConfigType("yaml") + viper.SetDefault("DataPath", ipamdir+"data/") viper.SetDefault("EnablePowerDNS", false) - viper.SetDefault("DataPath", ipamdir+"/data/") + viper.SetDefault("PowerDNSEndpoint", "") + viper.SetDefault("PowerDNSApiKey", "") if err := viper.ReadInConfig(); err != nil { _, patherr := os.Stat(ipamdir)