From d504e9e3ccb831b0da0585cacb610d7f6f97c257 Mon Sep 17 00:00:00 2001 From: 0xdcarns Date: Mon, 21 Mar 2022 12:13:27 -0400 Subject: [PATCH] comms join issue --- netclient/command/commands.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/netclient/command/commands.go b/netclient/command/commands.go index 860db413..87c1af5c 100644 --- a/netclient/command/commands.go +++ b/netclient/command/commands.go @@ -1,7 +1,6 @@ package command import ( - "errors" "strings" "github.com/gravitl/netmaker/logger" @@ -21,8 +20,8 @@ func JoinComms(cfg *config.ClientConfig) error { commsCfg.Server.GRPCAddress = cfg.Server.GRPCAddress commsCfg.Server.GRPCSSL = cfg.Server.GRPCSSL commsCfg.Server.CoreDNSAddr = cfg.Server.CoreDNSAddr - if !commsCfg.ConfigFileExists() { - return errors.New("no configuration file exists") + if commsCfg.ConfigFileExists() { + return nil } commsCfg.ReadConfig()