environment disable now cleans up agent remote; refactored and streamlined disableHandler (#967)

This commit is contained in:
Michael Quigley
2025-06-03 12:41:49 -04:00
parent 94f11b16dd
commit 3ed97d4e90
3 changed files with 127 additions and 102 deletions

View File

@@ -20,7 +20,6 @@ func newEnableHandler() *enableHandler {
}
func (h *enableHandler) Handle(params environment.EnableParams, principal *rest_model_zrok.Principal) middleware.Responder {
// start transaction early; if it fails, don't bother creating ziti resources
trx, err := str.Begin()
if err != nil {
logrus.Errorf("error starting transaction for user '%v': %v", principal.Email, err)