Skip to content

Commit

Permalink
change container name to a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
swetha1654 committed Feb 27, 2025
1 parent 122ed19 commit 7691546
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/paas_charm/go/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
from paas_charm.charm import PaasCharm
from paas_charm.framework import FrameworkConfig

WORKLOAD_CONTAINER_NAME = "app"


class GoConfig(FrameworkConfig):
"""Represent Go builtin configuration values.
Expand Down Expand Up @@ -59,7 +61,7 @@ def _workload_config(self) -> WorkloadConfig:
framework_config = typing.cast(GoConfig, self.get_framework_config())
return WorkloadConfig(
framework=framework_name,
container_name="app",
container_name=WORKLOAD_CONTAINER_NAME,
port=framework_config.port,
base_dir=base_dir,
app_dir=base_dir,
Expand Down

0 comments on commit 7691546

Please sign in to comment.