Skip to content

Commit

Permalink
fix misnamed container reference in katib-ui charm (#157)
Browse files Browse the repository at this point in the history
Changes katib-ui charm to correctly access the container by the container name, not by the application name.

Fixes #156
  • Loading branch information
ca-scribner authored Nov 29, 2023
1 parent 48e8388 commit 311b36a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charms/katib-ui/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, framework):
self._container_name = "katib-ui"
self._namespace = self.model.name
self._name = self.model.app.name
self._container = self.unit.get_container(self._name)
self._container = self.unit.get_container(self._container_name)
self._lightkube_field_manager = "lightkube"
self._port = self.model.config["port"]
port = ServicePort(int(self._port), name=f"{self.app.name}")
Expand Down

0 comments on commit 311b36a

Please sign in to comment.