Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
kudj committed Nov 29, 2024
1 parent 2384aba commit 7326160
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def run(self, debug=False):

self.params = Configuration(**self.configuration.parameters)

self.params.group_id = f"kbc-proj-{self.environment_variables.project_id}"
self.params.client_id = f"kbc-config-{self.environment_variables.config_row_id}"
self.params.group_id = f"kbc-proj-{self.environment_variables.project_id}" or "kbc-proj-0"
self.params.client_id = f"kbc-config-{self.environment_variables.config_row_id}" or "kbc-config-0"

# Generating a string out of the list
servers = ",".join(self.params.servers)
Expand Down
3 changes: 3 additions & 0 deletions src/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ class Units(str, Enum):

class Configuration(BaseModel):
servers: list[str] = Field(default=None)
group_id: str = Field(default=None)
client_id: str = Field(default=None)

topics: list[str] = Field(default=None)

security_protocol: str = Field(default=None)
Expand Down

0 comments on commit 7326160

Please sign in to comment.