diff --git a/docs/Configuration/yaml-files.md b/docs/Configuration/yaml-files.md index 15271d1cc719..0f48603b09b4 100644 --- a/docs/Configuration/yaml-files.md +++ b/docs/Configuration/yaml-files.md @@ -481,7 +481,7 @@ org_settings: - `live_query_disabled` disables the ability to run live queries (ad hoc queries executed via the UI or fleetctl) (default: `false`). - `query_reports_disabled` disables query reports and deletes existing repors (default: `false`). - `query_report_cap` sets the maximum number of results to store per query report before the report is clipped. If increasing this cap, we recommend enabling reports for one query at time and monitoring your infrastructure. (Default: `1000`) -- `scripts_disabled` blocks access to run scripts. Scripts may still be added in the UI and CLI (defaul: `false`). +- `scripts_disabled` blocks access to run scripts. Scripts may still be added in the UI and CLI (default: `false`). - `server_url` is the base URL of the Fleet instance (default: provided during Fleet setup) Can only be configured for all teams (`org_settings`). diff --git a/server/service/client.go b/server/service/client.go index 3c168ed26b2c..db0fdf8c2612 100644 --- a/server/service/client.go +++ b/server/service/client.go @@ -1744,7 +1744,11 @@ func (c *Client) doGitOpsQueries(config *spec.GitOps, logFn func(format string, } if !found { queriesToDelete = append(queriesToDelete, oldQuery.ID) - fmt.Printf("[-] deleting query %s\n", oldQuery.Name) + if !dryRun { + fmt.Printf("[-] deleting query %s\n", oldQuery.Name) + } else { + fmt.Printf("[-] would've deleted query %s\n", oldQuery.Name) + } } } if len(queriesToDelete) > 0 {