Skip to content

Commit

Permalink
chore: feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jahzielv committed Sep 24, 2024
1 parent 4e4aa50 commit 0978957
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion changes/22198-defaults
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- Fixes a bug where removing a VPP or ABM token from a GitOps YAML file would leave the tema
- Fixes a bug where removing a VPP or ABM token from a GitOps YAML file would leave the team
assignments unchanged.
4 changes: 1 addition & 3 deletions server/service/appconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,7 @@ func (svc *Service) ModifyAppConfig(ctx context.Context, p []byte, applyOpts fle
}

// Reset teams for VPP tokens that exist in Fleet but aren't present in the config being passed
for k := range tokensInCfg {
delete(tokensInCfg, k)
}
clear(tokensInCfg)

for _, t := range newAppConfig.MDM.VolumePurchasingProgram.Value {
tokensInCfg[t.Location] = struct{}{}
Expand Down

0 comments on commit 0978957

Please sign in to comment.