Skip to content

Commit

Permalink
feat: add alias for minio service name in charm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ca-scribner committed Nov 20, 2023
1 parent 9b68716 commit 19f219b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def __init__(self, *args):
# Random salt used for hashing config
self._stored.set_default(hash_salt=_gen_pass())

self._minio_service_name = self.app.name

self.image = OCIImageResource(self, "oci-image")

self.prometheus_provider = MetricsEndpointProvider(
Expand Down Expand Up @@ -165,7 +167,7 @@ def _send_info(self, interfaces, secret_key):
"port": self.model.config["port"],
"secret-key": secret_key,
"secure": False,
"service": self.model.app.name,
"service": self._minio_service_name,
}
)

Expand Down

0 comments on commit 19f219b

Please sign in to comment.