fix multinode check in node_add
parent
a2aaea83af
commit
965e8da19a
|
@ -56,9 +56,11 @@ var nodeAddCmd = &cobra.Command{
|
|||
}
|
||||
|
||||
// Make sure to decrease the default amount of memory we use per VM if this is the first worker node
|
||||
if len(cc.Nodes) == 1 && viper.GetString(memory) == "" {
|
||||
if len(cc.Nodes) == 1 {
|
||||
warnAboutMultiNode()
|
||||
cc.Memory = 2200
|
||||
if viper.GetString(memory) == "" {
|
||||
cc.Memory = 2200
|
||||
}
|
||||
}
|
||||
|
||||
if err := node.Add(cc, n); err != nil {
|
||||
|
|
Loading…
Reference in New Issue