For fleetctl gitops, when MDM configs are not explicitly defined in gitops yml file, they are now set to default values. (#17223)
For fleetctl gitops, when MDM configs are not explicitly defined in gitops yml file, they are now set to default values. #17209 Gitops role can now read org config/settings. This is used to determine whether license is Premium. Doc changes for permission access: https://github.com/fleetdm/fleet/pull/17238 # Checklist for submitter If some of the following don't apply, delete the relevant line. <!-- Note that API documentation changes are now addressed by the product design team. --> - [x] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [x] Documented any permissions changes (docs/Using Fleet/manage-access.md) - [x] Added/updated tests - [x] Manual QA for all new/changed functionality
This commit is contained in:
@@ -56,7 +56,14 @@ func gitopsCommand() *cli.Command {
|
||||
logf := func(format string, a ...interface{}) {
|
||||
_, _ = fmt.Fprintf(c.App.Writer, format, a...)
|
||||
}
|
||||
err = fleetClient.DoGitOps(c.Context, config, baseDir, logf, flDryRun)
|
||||
appConfig, err := fleetClient.GetAppConfig()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if appConfig.License == nil {
|
||||
return errors.New("no license struct found in app config")
|
||||
}
|
||||
err = fleetClient.DoGitOps(c.Context, config, baseDir, logf, flDryRun, appConfig)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user