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'])