You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Default teams behavior is incorrectly ignoring existing cost center assignments #39
I didn't notice until after the fact and it wiped some existing cost centers, but when I ran a plan and apply it says this under the Teams Mode Configuration:
Check current cost center: False
When reviewing main.py, I see that it's referencing args.check_current_cost_center.
The arg --check-current-cost-center defaults to false, since the action is store_true.
Maybe I'm missing something else, I tried another run using this command: python main.py --teams-mode --assign-cost-centers --mode apply --yes --verbose --check-current-cost-center
At the top it says: Check current cost center: True
But then during processing it removes me from my existing cost center and puts me in a different one:
Warning: 6 19:27:19 [WARNING] src.teams_cost_center_manager: ⚠️ Found 2 users who are members of multiple teams. Each user can only belong to ONE cost center - assignment depends on their current cost center status.
Warning: 6 19:27:19 [WARNING] src.teams_cost_center_manager: ⚠️ Mike-Nahmias is in multiple teams [ent:<team-name>, ent:test-github-group] → will be assigned to '[enterprise team] Test Github group'
Activity
Mike-Nahmias commentedon Nov 26, 2025
Maybe I'm missing something else, I tried another run using this command:
python main.py --teams-mode --assign-cost-centers --mode apply --yes --verbose --check-current-cost-centerAt the top it says:
Check current cost center: TrueBut then during processing it removes me from my existing cost center and puts me in a different one: