fix build after merge
This commit is contained in:
parent
0d2e1a76a2
commit
3ad15a68e2
3 changed files with 3 additions and 5 deletions
|
|
@ -281,14 +281,14 @@ func (a *Agent) NixMeshNodeID() string {
|
||||||
meshSuccess := false
|
meshSuccess := false
|
||||||
a.Logger.Debugln("Getting mesh node id")
|
a.Logger.Debugln("Getting mesh node id")
|
||||||
|
|
||||||
if !trmm.FileExists(a.MeshSystemEXE) {
|
if !trmm.FileExists(a.MeshSystemBin) {
|
||||||
a.Logger.Debugln(a.MeshSystemEXE, "does not exist. Skipping.")
|
a.Logger.Debugln(a.MeshSystemBin, "does not exist. Skipping.")
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
opts := a.NewCMDOpts()
|
opts := a.NewCMDOpts()
|
||||||
opts.IsExecutable = true
|
opts.IsExecutable = true
|
||||||
opts.Shell = a.MeshSystemEXE
|
opts.Shell = a.MeshSystemBin
|
||||||
opts.Command = "-nodeid"
|
opts.Command = "-nodeid"
|
||||||
|
|
||||||
for !meshSuccess {
|
for !meshSuccess {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/amidaware/rmmagent/agent/tactical/config"
|
"github.com/amidaware/rmmagent/agent/tactical/config"
|
||||||
"github.com/amidaware/rmmagent/shared"
|
|
||||||
"github.com/go-resty/resty/v2"
|
"github.com/go-resty/resty/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ import (
|
||||||
"time"
|
"time"
|
||||||
"unicode/utf16"
|
"unicode/utf16"
|
||||||
|
|
||||||
"github.com/amidaware/rmmagent/shared"
|
|
||||||
"github.com/go-resty/resty/v2"
|
"github.com/go-resty/resty/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue