From 6a08d95e602663f6ccbe63c8a2204060f8e58336 Mon Sep 17 00:00:00 2001 From: Scott Gress Date: Thu, 5 Mar 2026 17:29:33 -0600 Subject: [PATCH] Add missing deprecation warning for `--policies-team` (#41071) **Related issue:** For #41031 # Checklist for submitter If some of the following don't apply, delete the relevant line. - [ ] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. n/a ## Testing - [ ] Added/updated automated tests - [X] QA'd all new/changed functionality manually image For unreleased bug fixes in a release candidate, one of: - [X] Confirmed that the fix is not expected to adversely impact load test results --- cmd/fleetctl/fleetctl/apply.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/fleetctl/fleetctl/apply.go b/cmd/fleetctl/fleetctl/apply.go index ec1193ff29..8266ec8d26 100644 --- a/cmd/fleetctl/fleetctl/apply.go +++ b/cmd/fleetctl/fleetctl/apply.go @@ -54,6 +54,10 @@ func applyCommand() *cli.Command { enableLogTopicsFlag(), disableLogTopicsFlag(), }, + Before: func(c *cli.Context) error { + logDeprecatedFlagName(c, "policies-team", "policies-fleet") + return nil + }, Action: func(c *cli.Context) error { // Disable field deprecation warnings for now. // TODO - remove this in future release to unleash warnings.