File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -309,7 +309,7 @@ def validate_termination_grace_period(self, data):
309309 if not re .match (PROCTYPE_MATCH , key ):
310310 raise serializers .ValidationError (PROCTYPE_MISMATCH_MSG )
311311
312- timeout = re .match (TERMINATION_GRACE_PERIOD_MATCH , value )
312+ timeout = re .match (TERMINATION_GRACE_PERIOD_MATCH , str ( value ) )
313313 if not timeout :
314314 raise serializers .ValidationError (
315315 "Termination Grace Period format: <value>, where value must be a numeric" )
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ def _get_termination_grace_period(self, kwargs):
261261 timeout_global = kwargs .get ('pod_termination_grace_period_seconds' , 30 )
262262 timeout_local = kwargs .get ("pod_termination_grace_period_each" , {}).get (app_type )
263263
264- return timeout_global if timeout_local is None else timeout_local
264+ return timeout_global if timeout_local is None else int ( timeout_local )
265265
266266 def _format_memory (self , mem ):
267267 """ Format memory limit value """
You can’t perform that action at this time.
0 commit comments