Skip to content

Commit

Permalink
fix: remove duplicate check
Browse files Browse the repository at this point in the history
  • Loading branch information
nsklikas committed Apr 22, 2024
1 parent 5e00e2f commit 192273a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,6 @@ def _pebble_layer(self) -> Layer:
env_vars["OPENFGA_AUTHN_METHOD"] = "preshared"
env_vars["OPENFGA_AUTHN_PRESHARED_KEYS"] = token

env_vars = {key: value for key, value in env_vars.items() if value}
for setting in REQUIRED_SETTINGS:
if not env_vars.get(setting, ""):
self.unit.status = BlockedStatus(
"{} configuration value not set".format(setting),
)
return Layer()

pebble_layer: LayerDict = {
"summary": "openfga layer",
"description": "pebble layer for openfga",
Expand Down

0 comments on commit 192273a

Please sign in to comment.