Skip to content

Commit

Permalink
Conda environment now returns underlying environment's information (#493
Browse files Browse the repository at this point in the history
)
  • Loading branch information
romain-intel authored Apr 30, 2021
1 parent 9385205 commit 002e7fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions metaflow/plugins/conda/conda_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,12 @@ def get_client_info(cls, flow_name, metadata):
'explicit': info[env_id]['explicit'],
'deps': info[env_id]['deps']}
return new_info

def get_environment_info(self):
# We want to simply wrap the default environment, not necessarily the base class
# environment so we specifically call that one
from ...plugins import ENVIRONMENTS
from metaflow.metaflow_config import DEFAULT_ENVIRONMENT
base_env = [e for e in ENVIRONMENTS + [MetaflowEnvironment]
if e.TYPE == DEFAULT_ENVIRONMENT][0](self.flow)
return base_env.get_environment_info()

0 comments on commit 002e7fd

Please sign in to comment.