1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #5249: bug handling error in onegate

This commit is contained in:
Javi Fontan 2017-07-17 11:13:21 +02:00
parent e3b9f6f706
commit 442b9dcb76

View File

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