host templates in localconfig
This commit is contained in:
parent
8498a10279
commit
ccdbf2e2a5
@ -2,7 +2,7 @@ package localconfig
|
||||
|
||||
import (
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
yaml "gopkg.in/yaml.v2"
|
||||
@ -11,6 +11,7 @@ import (
|
||||
type Config struct {
|
||||
Clusters []*Cluster
|
||||
Hosts []*Host
|
||||
HostTemplates []*Host
|
||||
SSLConfig string
|
||||
}
|
||||
|
||||
@ -29,7 +30,7 @@ func FromBytes(data []byte) (*Config, error) {
|
||||
}
|
||||
|
||||
func FromFile(path string) (*Config, error) {
|
||||
ba, err := ioutil.ReadFile(path)
|
||||
ba, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user