Skip to content

Commit

Permalink
Use language_alias also for export
Browse files Browse the repository at this point in the history
  • Loading branch information
tomuben committed Jul 16, 2024
1 parent 9d91d2a commit 5ab20c4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions exasol/nb_connector/slct_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from exasol.nb_connector.language_container_activation import ACTIVATION_KEY_PREFIX
from exasol.nb_connector.secret_store import Secrets

RELEASE_NAME = "current"
DEFAULT_ALIAS = "my_language"
PATH_IN_BUCKET = "container"

# Activation SQL for the Custom SLC will be saved in the secret
Expand Down Expand Up @@ -113,7 +113,8 @@ def export(self):
with self.slc_dir.enter():
exaslct_api.export(flavor_path=(str(FLAVOR_PATH_IN_SLC_REPO),),
export_path=str(self.working_path.export_path),
output_directory=str(self.working_path.output_path))
output_directory=str(self.working_path.output_path),
release_name=self.language_alias,)

def upload(self):
"""
Expand Down Expand Up @@ -169,9 +170,9 @@ def language_alias(self) -> str:
"""
Returns the stored language alias.
"""
language_alias = self._secrets.get(AILabConfig.slc_alias)
language_alias = self._secrets.get(AILabConfig.slc_alias, DEFAULT_ALIAS)
if not language_alias:
raise RuntimeError("SLC language alias key not defined in secrets.")
return DEFAULT_ALIAS
return language_alias

@language_alias.setter
Expand Down

0 comments on commit 5ab20c4

Please sign in to comment.