From 2a50be6e1e004c5542b00ff0460bbd552dde0a99 Mon Sep 17 00:00:00 2001 From: Hugo Herter Date: Fri, 21 Jun 2024 13:13:03 +0200 Subject: [PATCH] Fix: Newer aleph-message requires InstanceEnvironment Else tests were breaking. --- src/aleph/sdk/client/authenticated_http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aleph/sdk/client/authenticated_http.py b/src/aleph/sdk/client/authenticated_http.py index 60d42b2b..c85494fa 100644 --- a/src/aleph/sdk/client/authenticated_http.py +++ b/src/aleph/sdk/client/authenticated_http.py @@ -31,6 +31,7 @@ FunctionEnvironment, HypervisorType, MachineResources, + InstanceEnvironment, ) from aleph_message.models.execution.instance import RootfsVolume from aleph_message.models.execution.program import CodeContent, FunctionRuntime @@ -539,8 +540,7 @@ async def create_instance( content = InstanceContent( address=address, allow_amend=allow_amend, - environment=FunctionEnvironment( - reproducible=False, + environment=InstanceEnvironment( internet=internet, aleph_api=aleph_api, hypervisor=hypervisor,