Skip to content

Bug/fix remove api action#806

Merged
javuto merged 2 commits into
jmpsec:mainfrom
mehdi-shokohi:bug/fix-remove-api-action
May 11, 2026
Merged

Bug/fix remove api action#806
javuto merged 2 commits into
jmpsec:mainfrom
mehdi-shokohi:bug/fix-remove-api-action

Conversation

@mehdi-shokohi
Copy link
Copy Markdown
Contributor

Fix incorrect function calls in API remove actions handler
Problem: The EnvRemoveActionsHandler was incorrectly calling enrollment functions (ExtendEnroll, ExpireEnroll, RotateEnroll, NotExpireEnroll) instead of the corresponding remove functions (ExtendRemove, ExpireRemove, RotateRemove, NotExpireRemove).

Solution: Updated all action cases in EnvRemoveActionsHandler to use the correct remove-specific functions:

ExtendEnroll → ExtendRemove
ExpireEnroll → ExpireRemove
RotateEnroll → RotateRemove
NotExpireEnroll → NotExpireRemove
Files changed:

environments.go: Fixed function calls in EnvRemoveActionsHandler

@javuto javuto merged commit 5d60dda into jmpsec:main May 11, 2026
4 checks passed
@javuto javuto self-requested a review May 11, 2026 13:13
@javuto javuto self-assigned this May 11, 2026
@javuto javuto added osctrl-api osctrl-api related changes 🚧 bugfix Fix for an existing bug labels May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚧 bugfix Fix for an existing bug osctrl-api osctrl-api related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants