From 6a0c4976baf24b02e659145e912c494fe05b6557 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Mon, 17 Apr 2023 22:23:25 +0200 Subject: [PATCH] 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 --- lib/runner/strategy/poseidon.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/runner/strategy/poseidon.rb b/lib/runner/strategy/poseidon.rb index 1f222a5b..c88fc1b0 100644 --- a/lib/runner/strategy/poseidon.rb +++ b/lib/runner/strategy/poseidon.rb @@ -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