removed getters as configs must exportable
Signed-off-by: Christian Goll <cgoll@suse.de>
This commit is contained in:
@@ -27,7 +27,7 @@ func main() {
|
||||
conf := warewulfconf.New()
|
||||
|
||||
// Read the config file.
|
||||
config, err := apiconfig.NewClient(path.Join(conf.SYSCONFDIR(), "warewulf/wwapic.conf"))
|
||||
config, err := apiconfig.NewClient(path.Join(conf.Paths.Sysconfdir, "warewulf/wwapic.conf"))
|
||||
if err != nil {
|
||||
log.Fatalf("err: %v", err)
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ func main() {
|
||||
|
||||
conf := warewulfconf.New()
|
||||
// Read the config file.
|
||||
config, err := apiconfig.NewServer(path.Join(conf.SYSCONFDIR(), "warewulf/wwapid.conf"))
|
||||
config, err := apiconfig.NewServer(path.Join(conf.Paths.Sysconfdir, "warewulf/wwapid.conf"))
|
||||
if err != nil {
|
||||
log.Fatalf("err: %v", err)
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ func run() error {
|
||||
|
||||
conf := warewulfconf.New()
|
||||
// Read the config file.
|
||||
config, err := apiconfig.NewClientServer(path.Join(conf.SYSCONFDIR(), "warewulf/wwapird.conf"))
|
||||
config, err := apiconfig.NewClientServer(path.Join(conf.Paths.Sysconfdir, "warewulf/wwapird.conf"))
|
||||
if err != nil {
|
||||
glog.Fatalf("Failed to read config file, err: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user