Skip to content

Commit

Permalink
Use services[x] instead of services.get(x) to fix type checking issue (
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoyt authored Jun 13, 2023
1 parent c9e4fa6 commit a2aa5ef
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 @@ -349,7 +349,7 @@ def _restart_service(self) -> bool:
# Update "launched with peers" flag.
# The service should be restarted when peers joined if this is False.
plan = self.container.get_plan()
service = plan.services.get(self._service_name)
service = plan.services[self._service_name]
self._stored.launched_with_peers = "--cluster.peer" in service.command

return True
Expand Down

0 comments on commit a2aa5ef

Please sign in to comment.