Skip to content

Commit

Permalink
update elif for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AmberCharitos committed May 15, 2024
1 parent b27c0e3 commit 23d2ead
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,13 @@ def update(self, event):
charm_function = self.config["charm-function"].value
logger.info("configuring ranger %s", charm_function)

if charm_function == "admin":
self.model.unit.open_port(port=APPLICATION_PORT, protocol="tcp")
command, context = self._configure_ranger_admin(container)

if charm_function == "usersync":
command, context = self._configure_ranger_usersync(container)

else:
self.model.unit.open_port(port=APPLICATION_PORT, protocol="tcp")
command, context = self._configure_ranger_admin(container)

logger.info("planning ranger %s execution", charm_function)
pebble_layer = {
"summary": f"ranger {charm_function} layer",
Expand Down

0 comments on commit 23d2ead

Please sign in to comment.