Fix node set
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user