Skip to content

Commit

Permalink
Removed unused name
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Zunker <[email protected]>
  • Loading branch information
czunker committed Oct 31, 2023
1 parent e6a250d commit 4218fda
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions apps/cnspec/cmd/backgroundjob/checkin.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (

"github.com/pkg/errors"
"github.com/rs/zerolog/log"
"github.com/spf13/viper"
"go.mondoo.com/cnquery/v9"
"go.mondoo.com/cnquery/v9/cli/sysinfo"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream"
Expand Down Expand Up @@ -103,11 +102,6 @@ func (c *checkinPinger) checkIn(sysInfo *sysinfo.SystemInfo) error {
return errors.Wrap(err, "could not connect to mondoo platform")
}

name := viper.GetString("name")
if name == "" {
name = sysInfo.Hostname
}

_, err = client.HealthCheck(context.Background(), &upstream.AgentInfo{
Mrn: c.mrn,
Version: sysInfo.Version,
Expand Down

0 comments on commit 4218fda

Please sign in to comment.