fix multinode check in node_add

pull/7934/head
Sharif Elgamal 2020-04-29 13:06:20 -07:00
parent a2aaea83af
commit 965e8da19a
1 changed files with 4 additions and 2 deletions

View File

@ -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 {