Skip to content

Commit

Permalink
use not force
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcsaposs-canonical committed Oct 19, 2023
1 parent e52029f commit b2da78e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def determine_partition() -> int:
for upgrade_order_index, unit in enumerate(units):
# Note: upgrade_order_index != unit number
if (
force is False and self._peer_relation.data[unit].get("state") != "healthy"
not force and self._peer_relation.data[unit].get("state") != "healthy"
) or self._unit_workload_versions[unit.name] != self._app_workload_version:
if not action_event and upgrade_order_index == 1:
# User confirmation needed to resume upgrade (i.e. upgrade second unit)
Expand Down

0 comments on commit b2da78e

Please sign in to comment.