Skip to content

Commit

Permalink
Update autoscaling minimum to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Nogueira Gonçalves committed Aug 11, 2022
1 parent 9974b95 commit 05cd843
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _VERSION_MIGRATION/migrate-to-next.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,10 @@ def get_autoscaling(autoscaling):
try:
usage = autoscaling['up']['trigger']['usage']
ready_target = (100 - usage)/100
minimum = autoscaling['min'] if autoscaling['min'] != 0 else 1
return {
"enabled": True,
"min": autoscaling['min'],
"min": minimum,
"max": autoscaling['max'],
"policy": {
"type": 'roomOccupancy',
Expand Down

0 comments on commit 05cd843

Please sign in to comment.