Skip to content

Commit

Permalink
Min value should be Decimal
Browse files Browse the repository at this point in the history
This hopefully resolves error message seen in logs sometimes about "should be Decimal type"
  • Loading branch information
kdelee committed Sep 24, 2024
1 parent 5b7a050 commit 9ee487d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx/main/models/ha.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def __str__(self):
default=100,
editable=False,
)
capacity_adjustment = models.DecimalField(default=Decimal(1.0), max_digits=3, decimal_places=2, validators=[MinValueValidator(0)])
capacity_adjustment = models.DecimalField(default=Decimal(1.0), max_digits=3, decimal_places=2, validators=[MinValueValidator(Decimal(0.0))])
enabled = models.BooleanField(default=True)
managed_by_policy = models.BooleanField(default=True)

Expand Down

0 comments on commit 9ee487d

Please sign in to comment.