Skip to content

Commit

Permalink
Min value should be Decimal (#15413)
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 authored Dec 17, 2024
1 parent 36c75a2 commit 29f3679
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 29f3679

Please sign in to comment.