Fix node set

This commit is contained in:
Christian Goll
2022-07-26 10:48:16 +02:00
parent d252b974bf
commit 925a5a2155
2 changed files with 18 additions and 4 deletions

View File

@@ -11,8 +11,8 @@ import (
)
func CobraRunE(cmd *cobra.Command, args []string) (err error) {
OptionStrMap, haveNetname := apinode.AddNetname(OptionStrMap)
if !haveNetname {
OptionStrMap, netWithoutName := apinode.AddNetname(OptionStrMap)
if netWithoutName {
return errors.New("a netname must be given for any network related configuration")
}
realMap := make(map[string]string)