Skip to content

Commit

Permalink
[Containerapp] az containerapp update: Fix issue for --min-replicas…
Browse files Browse the repository at this point in the history
… is not set when the value is 0 (Azure#7046)
  • Loading branch information
Greedygre authored Nov 30, 2023
1 parent 8369787 commit 1fe964c
Show file tree
Hide file tree
Showing 4 changed files with 835 additions and 107 deletions.
1 change: 1 addition & 0 deletions src/containerapp/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Release History
===============
upcoming
++++++
* 'az containerapp update': Fix bug for --min-replicas is not set when the value is 0

0.3.45
++++++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def construct_payload(self):
e["value"] = ""

update_map = {}
update_map['scale'] = self.get_argument_min_replicas() or self.get_argument_max_replicas() or self.get_argument_scale_rule_name()
update_map['scale'] = self.get_argument_min_replicas() is not None or self.get_argument_max_replicas() is not None or self.get_argument_scale_rule_name() is not None
update_map['container'] = self._need_update_container()
update_map['ingress'] = self.get_argument_ingress() or self.get_argument_target_port()
update_map['registry'] = self.get_argument_registry_server() or self.get_argument_registry_user() or self.get_argument_registry_pass()
Expand Down
Loading

0 comments on commit 1fe964c

Please sign in to comment.