- Ran goimports to format code and imports
- Removed unused module from go.mod
- Added .editorconfig to keep formatting standard across contributors
This commit is contained in:
Ian Kaneshiro
2021-02-16 11:52:42 -08:00
parent 2558abad06
commit 846b45524c
78 changed files with 249 additions and 175 deletions

View File

@@ -2,11 +2,12 @@ package warewulfconf
import (
"fmt"
"io/ioutil"
"net"
"github.com/brotherpowers/ipsubnet"
"github.com/hpcng/warewulf/internal/pkg/wwlog"
"gopkg.in/yaml.v2"
"io/ioutil"
"net"
)
func New() (ControllerConf, error) {

View File

@@ -1,9 +1,10 @@
package warewulfconf
import (
"os"
"github.com/hpcng/warewulf/internal/pkg/util"
"github.com/hpcng/warewulf/internal/pkg/wwlog"
"os"
)
const ConfigFile = "/etc/warewulf/warewulf.conf"

View File

@@ -1,9 +1,10 @@
package warewulfconf
import (
"os"
"github.com/hpcng/warewulf/internal/pkg/wwlog"
"gopkg.in/yaml.v2"
"os"
)
func (self *ControllerConf) Persist() error {