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

This commit is contained in:
Jan Orel authored and GitHub committed 2020-05-16 21:17:40 +02:00
1 parent 8ab972c0fd
commit 82a8183daf
1 file changed
+3 -1
+3 -1
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