fix build after merge

This commit is contained in:
redanthrax 2022-06-24 11:24:00 -07:00
parent 0d2e1a76a2
commit 3ad15a68e2
3 changed files with 3 additions and 5 deletions

View file

@ -281,14 +281,14 @@ func (a *Agent) NixMeshNodeID() string {
meshSuccess := false
a.Logger.Debugln("Getting mesh node id")
if !trmm.FileExists(a.MeshSystemEXE) {
a.Logger.Debugln(a.MeshSystemEXE, "does not exist. Skipping.")
if !trmm.FileExists(a.MeshSystemBin) {
a.Logger.Debugln(a.MeshSystemBin, "does not exist. Skipping.")
return ""
}
opts := a.NewCMDOpts()
opts.IsExecutable = true
opts.Shell = a.MeshSystemEXE
opts.Shell = a.MeshSystemBin
opts.Command = "-nodeid"
for !meshSuccess {

View file

@ -5,7 +5,6 @@ import (
"time"
"github.com/amidaware/rmmagent/agent/tactical/config"
"github.com/amidaware/rmmagent/shared"
"github.com/go-resty/resty/v2"
)

View file

@ -13,7 +13,6 @@ import (
"time"
"unicode/utf16"
"github.com/amidaware/rmmagent/shared"
"github.com/go-resty/resty/v2"
)