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

M #-: Include deploy_id in public driver cache (#4736)

This commit is contained in:
Jan Orel 2020-05-16 21:17:40 +02:00 committed by GitHub
parent 8ab972c0fd
commit 82a8183daf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,7 +249,9 @@ class InstanceCache
def select_vms
vms = []
execute_retry('SELECT * from vms').each do |vm|
vms << Hash[[:uuid, :id, :name, :state, :type].zip(vm)]
vm = Hash[[:uuid, :id, :name, :state, :type].zip(vm)]
vm[:deploy_id] = vm[:uuid]
vms << vm
end
vms