Skip to content

Commit

Permalink
Fix: Newer aleph-message requires InstanceEnvironment
Browse files Browse the repository at this point in the history
Else tests were breaking.
  • Loading branch information
hoh committed Jun 21, 2024
1 parent 2ecf8e9 commit 2a50be6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aleph/sdk/client/authenticated_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2a50be6

Please sign in to comment.