Enable vulnerability detection in fleetctl preview (#2376)

This commit is contained in:
Martin Angers 2021-10-07 08:02:49 -04:00 committed by GitHub
parent e4dae5f3d1
commit 9a36fce082
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1 @@
* Enable vulnerability detection in `fleetctl preview`.

View file

@ -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")