Skip to content

Commit d37c01d

Browse files
Jeny Sadadianuclearcat
authored andcommitted
Change type of retry_counter field
Enforce stricter validation for retry counter field to avoid string or float value submission. Signed-off-by: Jeny Sadadia <[email protected]>
1 parent f03c1e2 commit d37c01d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernelci/api/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class Node(DatabaseModel):
269269
description="Flag to indicate if the node was processed by KCIDB-Bridge",
270270
default=False
271271
)
272-
retry_counter: int = Field(
272+
retry_counter: StrictInt = Field(
273273
default=0,
274274
description="Number of times the job has retried"
275275
)

0 commit comments

Comments
 (0)