Skip to content

Commit 9da6c05

Browse files
fixing issue: min/max executions not accepting 0 values in az containerapp job update (#9030)
* fixing issue: min/max executions not set in job update azcli * adding tests * undoing version change
1 parent cb32570 commit 9da6c05

File tree

3 files changed

+6631
-4
lines changed

3 files changed

+6631
-4
lines changed

src/containerapp/azext_containerapp/containerapp_job_decorator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ def should_update_trigger_configurations(self):
308308
or self.get_argument_scale_rule_type() \
309309
or self.get_argument_scale_rule_auth() \
310310
or self.get_argument_polling_interval() \
311-
or self.get_argument_min_executions() \
312-
or self.get_argument_max_executions()
311+
or self.get_argument_min_executions() is not None \
312+
or self.get_argument_max_executions() is not None
313313

314314
def set_up_trigger_configurations(self):
315315
if self.should_update_trigger_configurations(): # pylint: disable=too-many-nested-blocks

0 commit comments

Comments
 (0)