diff options
author | Elijah DeLee <kdelee@redhat.com> | 2024-12-17 18:45:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-17 18:45:39 +0100 |
commit | 29f36793debb7058df2a4dc41d1623031957dd13 (patch) | |
tree | b51c4e4c620b809dfb802188aeb9d516a7982e48 | |
parent | AAP-36536 Send job_lifecycle logs to external loggers (#15701) (diff) | |
download | awx-29f36793debb7058df2a4dc41d1623031957dd13.tar.xz awx-29f36793debb7058df2a4dc41d1623031957dd13.zip |
Min value should be Decimal (#15413)
This hopefully resolves error message seen in logs sometimes about "should be Decimal type"
-rw-r--r-- | awx/main/models/ha.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/awx/main/models/ha.py b/awx/main/models/ha.py index 8c8c9f919b..a061a638f6 100644 --- a/awx/main/models/ha.py +++ b/awx/main/models/ha.py @@ -160,7 +160,7 @@ class Instance(HasPolicyEditsMixin, BaseModel): 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) |