mirror of
https://github.com/openziti/zrok.git
synced 2024-11-07 08:44:14 +01:00
Merge pull request #696 from openziti/environment_count_fix
Fix for Environment Count Inheritance (#695)
This commit is contained in:
commit
bfa9a43466
@ -10,6 +10,8 @@ CHANGE: auto-update the ziti CLI version that is built in to the openziti/zrok c
|
|||||||
|
|
||||||
CHANGE: Docker examples set HOME to enable running CLI commands in the container
|
CHANGE: Docker examples set HOME to enable running CLI commands in the container
|
||||||
|
|
||||||
|
FIX: Fix for environment count inheritance when using a resource count class to override global environment count (https://github.com/openziti/zrok/issues/695)
|
||||||
|
|
||||||
## v0.4.34
|
## v0.4.34
|
||||||
|
|
||||||
FEATURE: Linux service support for all private share modes (contribution from Stefan Adelbert @stefanadelbert)
|
FEATURE: Linux service support for all private share modes (contribution from Stefan Adelbert @stefanadelbert)
|
||||||
|
@ -68,7 +68,7 @@ func (a *Agent) CanCreateEnvironment(acctId int, trx *sqlx.Tx) (bool, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
if len(envs)+1 > a.cfg.Environments {
|
if len(envs)+1 > ul.resource.GetEnvironments() {
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user