Browse Source

Merge pull request #1106 from gravitl/bugfix_v0.14.1_unnecessary_chk

removed unnecessary check for network in join command
Matthew R Kasun 3 years ago
parent
commit
05e0531167
1 changed files with 0 additions and 6 deletions
  1. 0 6
      netclient/cli_options/cmds.go

+ 0 - 6
netclient/cli_options/cmds.go

@@ -1,8 +1,6 @@
 package cli_options
 
 import (
-	"errors"
-
 	"github.com/gravitl/netmaker/logger"
 	"github.com/gravitl/netmaker/netclient/command"
 	"github.com/gravitl/netmaker/netclient/config"
@@ -22,10 +20,6 @@ func GetCommands(cliFlags []cli.Flag) []*cli.Command {
 				if err != nil {
 					return err
 				}
-				if cfg.Network == "all" {
-					err = errors.New("no network provided")
-					return err
-				}
 				err = command.Join(&cfg, pvtKey)
 				return err
 			},