Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conda environment now returns underlying environment's information #493

Merged
merged 1 commit into from
Apr 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()