Skip to content

Commit

Permalink
[DPE-3680] fix: rollback rolling-ops; 1-unit wouldn't restart (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoppenheimer authored Feb 26, 2024
1 parent 1f22fc9 commit 9ebd9a2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/charms/rolling_ops/v0/rollingops.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _on_trigger_restart(self, event):

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 6
LIBPATCH = 5


class LockNoRelationError(Exception):
Expand Down Expand Up @@ -327,9 +327,6 @@ def _on_relation_changed(self: CharmBase, event: RelationChangedEvent):
Then, if we are the leader, fire off a process locks event.
"""
if self.name not in os.environ.get("JUJU_DISPATCH_PATH", ""):
return

lock = Lock(self)

if lock.is_pending():
Expand Down

0 comments on commit 9ebd9a2

Please sign in to comment.