Skip to content

Commit

Permalink
Add exegol name env to the config enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Dramelac committed Oct 14, 2023
1 parent 7c6286d commit 22afbdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions exegol/model/ContainerConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class ExegolEnv(Enum):
desktop_protocol = "EXEGOL_DESKTOP_PROTO"
desktop_host = "EXEGOL_DESKTOP_HOST"
desktop_port = "EXEGOL_DESKTOP_PORT"
exegol_name = "EXEGOL_NAME"

# Label features (label name / wrapper method to enable the feature)
__label_features = {ExegolFeatures.shell_logging.value: "enableShellLogging",
Expand Down
2 changes: 1 addition & 1 deletion exegol/model/ExegolContainerTemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, name: Optional[str], config: ContainerConfig, image: ExegolIm
if hostname:
self.config.hostname = hostname
if new_container:
self.config.addEnv("EXEGOL_NAME", self.container_name)
self.config.addEnv(ContainerConfig.ExegolEnv.exegol_name.value, self.container_name)
else:
self.config.hostname = self.container_name

Expand Down

0 comments on commit 22afbdc

Please sign in to comment.