Skip to content

Commit

Permalink
Hotfix: Remove .ktr and .kjb from trans and job name.
Browse files Browse the repository at this point in the history
  • Loading branch information
piffall committed Nov 3, 2023
1 parent fc11210 commit 87895d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions airflow_pentaho/operators/carte.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _get_pentaho_carte_client(self):
level=self.level).get_conn()

def _get_job_name(self):
return self.job.split('/').pop()
return self.job.split('/').pop().replace('.kjb', '')

def execute(self, context): # pylint: disable=unused-argument
conn = self._get_pentaho_carte_client()
Expand Down Expand Up @@ -171,7 +171,7 @@ def _get_pentaho_carte_client(self):
level=self.level).get_conn()

def _get_trans_name(self):
return self.trans.split('/').pop()
return self.trans.split('/').pop().replace('.ktr', '')

def execute(self, context): # pylint: disable=unused-argument
conn = self._get_pentaho_carte_client()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

setup(
name='airflow-pentaho-plugin',
version='1.1.1',
version='1.1.2',
license='Apache 2.0',
author='Damavis',
author_email='info@damavis.com',
Expand Down

0 comments on commit 87895d1

Please sign in to comment.