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

B #2047: onegate error when trying to poweroff a VM (#3399)

* Add comparation between two integers
This commit is contained in:
Alejandro Huertas Herrero 2019-06-03 13:03:15 +02:00 committed by Tino Vázquez
parent 9d44e942ad
commit 237f32a642

View File

@ -155,7 +155,7 @@ helpers do
def get_requested_vm(requested_vm_id, request_env, client)
source_vm = get_source_vm(request_env, client)
if source_vm['ID'] != requested_vm_id
if source_vm['ID'].to_i != requested_vm_id
service_id = source_vm['USER_TEMPLATE/SERVICE_ID']
check_vm_in_service(requested_vm_id, service_id, client)