mirror of
https://github.com/openziti/zrok.git
synced 2025-08-18 11:49:51 +02:00
environment disable now cleans up agent remote; refactored and streamlined disableHandler (#967)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user