Skip to content

Commit

Permalink
Removed recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloneppel committed Jul 17, 2023
1 parent 608e37b commit 57ac4cd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/charms/data_platform_libs/v0/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,9 +598,6 @@ def set_unit_failed(self) -> None:

self.peer_relation.data[self.charm.unit].update({"state": "failed"})

if self.substrate == "k8s":
self.on_upgrade_changed(EventBase(self.handle))

def set_unit_completed(self) -> None:
"""Sets unit `state=completed` to the upgrade peer data."""
if not self.peer_relation:
Expand Down

0 comments on commit 57ac4cd

Please sign in to comment.