ignore defval on GetSlice

if there is an value the default gets not included in the slice of an value
This commit is contained in:
Christian Goll
2022-03-11 15:59:38 +01:00
parent 5094ff2f7d
commit 351b81b9e3
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
}
if fileName == "" {
if overlayName == "wwinit" {
if overlayName == "wwinit" || overlayName == "host" {
return errors.New("refusing to delete the Warewulf overlay")
}
if Force {