Skip to content

Commit

Permalink
✨ support sysinfo without providers (#1028)
Browse files Browse the repository at this point in the history
See: mondoohq/cnquery#2969

Signed-off-by: Dominik Richter <[email protected]>
  • Loading branch information
arlimus authored Jan 7, 2024
1 parent ea1ed4d commit aead5e2
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 105 deletions.
4 changes: 2 additions & 2 deletions apps/cnspec/cmd/backgroundjob/checkin.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
"go.mondoo.com/cnquery/v9"
"go.mondoo.com/cnquery/v9/cli/sysinfo"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/sysinfo"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/upstream"
"go.mondoo.com/ranger-rpc"
"go.mondoo.com/ranger-rpc/plugins/scope"
Expand Down Expand Up @@ -47,7 +47,7 @@ func NewCheckinPinger(ctx context.Context, httpClient *http.Client, endpoint str

func (c *checkinPinger) Start() {
// determine information about the client
sysInfo, err := sysinfo.GatherSystemInfo()
sysInfo, err := sysinfo.Get()
if err != nil {
log.Error().Err(err).Msg("could not gather client information")
return
Expand Down
2 changes: 1 addition & 1 deletion apps/cnspec/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
"go.mondoo.com/cnquery/v9/cli/config"
cli_errors "go.mondoo.com/cnquery/v9/cli/errors"
"go.mondoo.com/cnquery/v9/cli/providers"
"go.mondoo.com/cnquery/v9/cli/sysinfo"
"go.mondoo.com/cnquery/v9/cli/theme"
"go.mondoo.com/cnquery/v9/cli/theme/colors"
"go.mondoo.com/cnquery/v9/logger"
"go.mondoo.com/cnquery/v9/providers-sdk/v1/sysinfo"
"go.mondoo.com/cnspec/v9"
"go.mondoo.com/ranger-rpc"
"go.mondoo.com/ranger-rpc/plugins/scope"
Expand Down
Loading

0 comments on commit aead5e2

Please sign in to comment.