Skip to content

Commit

Permalink
LOAD-4177 change to go mod vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewcooper committed Apr 24, 2024
1 parent 5671805 commit 0e086ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ plugins/netcore/bin/
.idea/

go.sum
/vendor/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ hcserial: get
genemailalerts: get
env GOOS=linux GOARCH=amd64 go build -buildmode=plugin -o ./plugins/genEmailAlerts/bin/genemail.so ./plugins/genEmailAlerts
get:
go mod download
go mod vedndor
cli: get
env GOOS=linux GOARCH=amd64 go build ${LDFLAGS} -v -o ./cmd/pulsectl/bin/pulsectl ./cmd/pulsectl
protos:
Expand Down
8 changes: 5 additions & 3 deletions packages/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (c *Config) Validate() error {
return errors.New("unable to load nodes section of the config")
}

// if we are in a cluster.. does our hostname exist?
// if we are in a cluster. does our hostname exist?
if c.ClusterCheck() {
var exists = func() bool {
for _, node := range c.Nodes {
Expand Down Expand Up @@ -261,7 +261,8 @@ func (c *Config) ClusterCheck() bool {
return false
}

/**
/*
*
Returns the interface the group is assigned to
*/
func (c *Config) GetGroupIface(hostname string, groupName string) (ifaceName string, err error) {
Expand All @@ -279,7 +280,8 @@ func (c *Config) GetGroupIface(hostname string, groupName string) (ifaceName str
return "", errors.New("cannot find interface assignment for group")
}

/**
/*
*
Returns the hostname for a node based of it's IP address
*/
func (c *Config) GetNodeHostnameByAddress(address string) (string, error) {
Expand Down

0 comments on commit 0e086ce

Please sign in to comment.