Fix lint error with unused function

This commit is contained in:
Gregory Kurtzer
2022-02-27 18:59:16 -08:00
parent 2927495de1
commit ce74d6f14a

View File

@@ -47,21 +47,3 @@ func NFS() error {
return nil
}
/*
Prints the configured nfs exports in formated style, needs not to be
the content of '/etc/exports'
*/
func showNFS() {
controller, err := warewulfconf.New()
if err != nil {
wwlog.Printf(wwlog.ERROR, "%s\n", err)
os.Exit(1)
}
fmt.Printf("/etc/exports:\n")
for _, export := range controller.Nfs.ExportsExtended {
fmt.Printf("%s %s/%s\n", export.Path, controller.Network, controller.Netmask)
}
fmt.Printf("\n")
}