Skip to content

Commit

Permalink
make Mount._deploy implicitly Environment-scoped
Browse files Browse the repository at this point in the history
  • Loading branch information
thundergolfer committed Nov 21, 2024
1 parent 9a54235 commit 30bff20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modal/mount.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,12 +622,13 @@ async def _deploy(
client: Optional[_Client] = None,
) -> None:
check_object_name(deployment_name, "Mount")
environment_name = _get_environment_name(environment_name, resolver=None)
self._deployment_name = deployment_name
self._namespace = namespace
self._environment_name = environment_name
if client is None:
client = await _Client.from_env()
resolver = Resolver(client=client)
resolver = Resolver(client=client, environment_name=environment_name)
await resolver.load(self)

def _get_metadata(self) -> api_pb2.MountHandleMetadata:
Expand Down

0 comments on commit 30bff20

Please sign in to comment.