mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-27 17:42:57 +08:00
Merge pull request #935 from gravitl/hotfix_v0.12.1_initial_test_fixes
comms join issue
This commit is contained in:
commit
1f269d8730
1 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
package command
|
package command
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/gravitl/netmaker/logger"
|
"github.com/gravitl/netmaker/logger"
|
||||||
|
@ -21,8 +20,8 @@ func JoinComms(cfg *config.ClientConfig) error {
|
||||||
commsCfg.Server.GRPCAddress = cfg.Server.GRPCAddress
|
commsCfg.Server.GRPCAddress = cfg.Server.GRPCAddress
|
||||||
commsCfg.Server.GRPCSSL = cfg.Server.GRPCSSL
|
commsCfg.Server.GRPCSSL = cfg.Server.GRPCSSL
|
||||||
commsCfg.Server.CoreDNSAddr = cfg.Server.CoreDNSAddr
|
commsCfg.Server.CoreDNSAddr = cfg.Server.CoreDNSAddr
|
||||||
if !commsCfg.ConfigFileExists() {
|
if commsCfg.ConfigFileExists() {
|
||||||
return errors.New("no configuration file exists")
|
return nil
|
||||||
}
|
}
|
||||||
commsCfg.ReadConfig()
|
commsCfg.ReadConfig()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue