This commit is contained in:
Mikaël Cluseau 2019-01-30 13:56:45 +11:00
parent 7ac7382719
commit a9454af71b
2 changed files with 5 additions and 2 deletions

View File

@ -100,6 +100,10 @@ func main() {
}
func renderAddons(cluster *clustersconfig.Cluster) string {
if len(cluster.Addons) == 0 {
return ""
}
addons := src.Addons[cluster.Addons]
if addons == nil {
log.Fatalf("cluster %q: no addons with name %q", cluster.Name, cluster.Addons)

View File

@ -8,8 +8,7 @@ import (
)
var (
dataDir = flag.String("data", "/var/lib/direktil", "Data dir")
configFromDir = flag.String("config-from-dir", "", "Build configuration from this directory")
dataDir = flag.String("data", "/var/lib/direktil", "Data dir")
)
func configFilePath() string {