Skip to content

Commit

Permalink
add disabled flavor condition
Browse files Browse the repository at this point in the history
  • Loading branch information
gamoutatsumi committed Apr 16, 2024
1 parent e13dda7 commit c2a3e22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pool-agent/cmd/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ func (a *Agent) checkInstances(ctx context.Context) error {
if !ok {
toDelete = append(toDelete, rt.Name)
continue
} else if rtCount == 0 {
toDelete = append(toDelete, rt.Name)
continue
}
createCount := rtCount - current - creating
if createCount < 1 {
Expand Down

0 comments on commit c2a3e22

Please sign in to comment.