Re-Allow successfully synchronization of environments

We previously fixed an issue with bootstrapping Poseidon, but unfortunately mixed with the conditions.

Amends c59eaa05
Fixes CODEOCEAN-M7
This commit is contained in:
Sebastian Serth
2023-04-17 22:23:25 +02:00
parent 24d718d870
commit 6a0c4976ba

View File

@ -29,9 +29,9 @@ class Runner::Strategy::Poseidon < Runner::Strategy
response_body = parse response
if response_body.key? :executionEnvironments
raise(Runner::Error::UnexpectedResponse.new("Could not get the list of execution environments in Poseidon, got response: #{response.as_json}"))
else
response_body[:executionEnvironments] || []
else
raise(Runner::Error::UnexpectedResponse.new("Could not get the list of execution environments in Poseidon, got response: #{response.as_json}"))
end
else
handle_error response