mirror of
https://github.com/openziti/zrok.git
synced 2025-08-17 19:31:12 +02:00
enabler canary; enabling environments (#935)
This commit is contained in:
@@ -8,10 +8,6 @@ import (
|
||||
)
|
||||
|
||||
func EnableEnvironment(env env_core.Root, request *EnableRequest) (*Environment, error) {
|
||||
if env.IsEnabled() {
|
||||
return nil, errors.New("environment is already enabled!")
|
||||
}
|
||||
|
||||
zrok, err := env.Client()
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "could not create zrok client")
|
||||
|
Reference in New Issue
Block a user