Skip to content

Commit

Permalink
Merge pull request #696 from openziti/environment_count_fix
Browse files Browse the repository at this point in the history
Fix for Environment Count Inheritance (#695)
  • Loading branch information
michaelquigley authored Jul 9, 2024
2 parents 187c06a + c0fac34 commit bfa9a43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

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

FEATURE: Linux service support for all private share modes (contribution from Stefan Adelbert @stefanadelbert)
Expand Down
2 changes: 1 addition & 1 deletion controller/limits/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (a *Agent) CanCreateEnvironment(acctId int, trx *sqlx.Tx) (bool, error) {
if err != nil {
return false, err
}
if len(envs)+1 > a.cfg.Environments {
if len(envs)+1 > ul.resource.GetEnvironments() {
return false, nil
}
}
Expand Down

0 comments on commit bfa9a43

Please sign in to comment.