Skip to content

Commit

Permalink
fix: use set_ports instead of open_port (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabello authored Apr 17, 2024
1 parent 0e949aa commit 48a4cf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class MimirWorkerK8SOperatorCharm(CharmBase):
def __init__(self, *args):
super().__init__(*args)
self._container = self.unit.get_container(self._name)
self.unit.open_port(protocol="tcp", port=8080)
self.unit.set_ports(8080)

self.topology = JujuTopology.from_charm(self)
self.mimir_cluster = MimirClusterRequirer(self)
Expand Down

0 comments on commit 48a4cf6

Please sign in to comment.