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

Fix issue with current_namespace when the namespace is None #1901

Merged
merged 1 commit into from
Jul 2, 2024
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
5 changes: 5 additions & 0 deletions metaflow/client/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@ def __init__(
self._attempt = attempt
self._current_namespace = _current_namespace or get_namespace()
self._namespace_check = _namespace_check
# If the current namespace is False, we disable checking for namespace for this
# and all children objects. Not setting namespace_check to False has the consequence
# of preventing access to children objects after the namespace changes
if self._current_namespace is None:
self._namespace_check = False

if self._attempt is not None:
if self._NAME not in ["task", "artifact"]:
Expand Down
Loading