Remove environment.Environment struct
This commit completely removes the environment struct as it is no longer used.
This commit is contained in:
parent
3263920d6b
commit
473040a69f
40 changed files with 91 additions and 146 deletions
|
|
@ -7,7 +7,6 @@ import (
|
|||
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/bootstrap"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/passwordx"
|
||||
"github.com/FAU-CDI/wisski-distillery/pkg/environment"
|
||||
"github.com/tkw1536/pkglib/hostname"
|
||||
"github.com/tkw1536/pkglib/password"
|
||||
)
|
||||
|
|
@ -28,13 +27,13 @@ type Template struct {
|
|||
}
|
||||
|
||||
// SetDefaults sets defaults on the template
|
||||
func (tpl *Template) SetDefaults(env environment.Environment) (err error) {
|
||||
func (tpl *Template) SetDefaults() (err error) {
|
||||
if tpl.RootPath == "" {
|
||||
tpl.RootPath = bootstrap.BaseDirectoryDefault
|
||||
}
|
||||
|
||||
if tpl.DefaultDomain == "" {
|
||||
tpl.DefaultDomain = hostname.FQDN() // TODO: Make this environment specific
|
||||
tpl.DefaultDomain = hostname.FQDN()
|
||||
}
|
||||
|
||||
if tpl.TSAdminUser == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue