Skip to content

Commit

Permalink
fix bug in envmapper
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Jan 5, 2024
1 parent c01dfc5 commit d70af64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions src/engine/src/core/mappers/EnvMapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ def __init__(self, dao: WorkflowExecutorStateDAO):
self._dao = dao

def get_value_by_key(self, key):
print("ENVMAPPER")
print("KEY", key)
print("KEY ON ENV", self._dao.get_state().ctx.env.get(key))
env = self._dao.get_state().ctx.env.get(key).value
env = self._dao.get_state().ctx.env.get(key, None)
if env == None: return None
return env.value
1 change: 0 additions & 1 deletion src/engine/src/core/workflows/WorkflowExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,6 @@ def _prepare_pipeline_fs(self):
env_var_value_file_repo = self.container.load("EnvVarValueFileRepository")
env_repo = self.container.load("EnvRepository")
for key in self.state.ctx.env:
print("KEY", key)
env_var_value_file_repo.save(
self.state.ctx.pipeline.env_dir + key,
env_repo.get_value_by_key(key)
Expand Down

0 comments on commit d70af64

Please sign in to comment.