From 442b9dcb76091420936315a103b544786ed00f79 Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Mon, 17 Jul 2017 11:13:21 +0200 Subject: [PATCH] B #5249: bug handling error in onegate --- src/onegate/onegate-server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onegate/onegate-server.rb b/src/onegate/onegate-server.rb index 50fed659da..9f3638a759 100644 --- a/src/onegate/onegate-server.rb +++ b/src/onegate/onegate-server.rb @@ -170,7 +170,7 @@ helpers do def perform_action(vm, body) action_hash = parse_json(body, 'action') if OpenNebula.is_error?(action_hash) - halt 400, rc.message + halt 400, action_hash.message end check_restricted_actions(action_hash['perform'])