mirror of
https://github.com/ansible/awx.git
synced 2026-03-23 20:05:03 -02:30
Min value should be Decimal (#15413)
This hopefully resolves error message seen in logs sometimes about "should be Decimal type"
This commit is contained in:
@@ -160,7 +160,7 @@ class Instance(HasPolicyEditsMixin, BaseModel):
|
|||||||
default=100,
|
default=100,
|
||||||
editable=False,
|
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)
|
enabled = models.BooleanField(default=True)
|
||||||
managed_by_policy = models.BooleanField(default=True)
|
managed_by_policy = models.BooleanField(default=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user