Rename BaseConf.Initialized to BaseConf.InitializedFromFile
Initialized could be interpreted to mean dynamically initialized as well. This new name removes that ambiguity. Signed-off-by: Jonathon Anderson <janderson@ciq.co>
This commit is contained in:
@@ -77,7 +77,7 @@ func rootPersistentPreRunE(cmd *cobra.Command, args []string) (err error) {
|
||||
wwlog.SetLogLevel(LogLevel)
|
||||
}
|
||||
conf := warewulfconf.Get()
|
||||
if !AllowEmptyConf && !conf.Initialized() {
|
||||
if !AllowEmptyConf && !conf.InitializedFromFile() {
|
||||
if WarewulfConfArg != "" {
|
||||
err = conf.ReadConf(WarewulfConfArg)
|
||||
} else if os.Getenv("WAREWULFCONF") != "" {
|
||||
|
||||
Reference in New Issue
Block a user