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:
parent
e3b9f6f706
commit
442b9dcb76
@ -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'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user