mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Enable vulnerability detection in fleetctl preview (#2376)
This commit is contained in:
parent
e4dae5f3d1
commit
9a36fce082
2 changed files with 7 additions and 0 deletions
1
changes/issue-2085-enable-vuln-detection
Normal file
1
changes/issue-2085-enable-vuln-detection
Normal file
|
|
@ -0,0 +1 @@
|
|||
* Enable vulnerability detection in `fleetctl preview`.
|
||||
|
|
@ -198,6 +198,12 @@ Use the stop and reset subcommands to manage the server and dependencies once st
|
|||
return errors.Wrap(err, "failed to apply standard query library")
|
||||
}
|
||||
|
||||
if err := client.ApplyAppConfig(map[string]map[string]bool{
|
||||
"host_settings": {"enable_software_inventory": true},
|
||||
}); err != nil {
|
||||
return errors.Wrap(err, "failed to enable software inventory app config")
|
||||
}
|
||||
|
||||
secrets, err := client.GetEnrollSecretSpec()
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "Error retrieving enroll secret")
|
||||
|
|
|
|||
Loading…
Reference in a new issue