Skip to content

Commit

Permalink
Ignore --delete-other-teams for non-premium gitops (#23052)
Browse files Browse the repository at this point in the history
#23050
# 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/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- [x] Manual QA for all new/changed functionality
  • Loading branch information
getvictor authored Oct 21, 2024
1 parent fb0f69c commit 476dd3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/23050-delete-other-teams
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ignore `--delete-other-teams` flag in `fleetctl gitops` command for non-Premium license users.
2 changes: 1 addition & 1 deletion cmd/fleetctl/gitops.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func gitopsCommand() *cli.Command {
return err
}
}
if flDeleteOtherTeams {
if flDeleteOtherTeams && appConfig.License.IsPremium() { // skip team deletion for non-premium users
teams, err := fleetClient.ListTeams("")
if err != nil {
return err
Expand Down

0 comments on commit 476dd3c

Please sign in to comment.