From 4aeb53c085d417df732d34f2cb66e0826fb290f5 Mon Sep 17 00:00:00 2001 From: Harpreet Kataria Date: Tue, 28 Nov 2017 13:50:53 -0500 Subject: [PATCH] Reverted a change that was accidentally backported this line was accidentally backported to EUWE in https://github.com/ManageIQ/manageiq/pull/15310 commit e066db4c6a9c89ee9270691d6e93aafae422b687 https://bugzilla.redhat.com/show_bug.cgi?id=1517712 --- app/controllers/cloud_volume_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/cloud_volume_controller.rb b/app/controllers/cloud_volume_controller.rb index a2abbd6ee7d8..9e810cec8746 100644 --- a/app/controllers/cloud_volume_controller.rb +++ b/app/controllers/cloud_volume_controller.rb @@ -75,7 +75,7 @@ def attach assert_privileges("cloud_volume_attach") @vm_choices = {} @volume = find_record_with_rbac(CloudVolume, params[:id]) - @volume.available_vms.each { |vm| @vm_choices[vm.name] = vm.id } + @volume.cloud_tenant.vms.each { |vm| @vm_choices[vm.name] = vm.id } @in_a_form = true drop_breadcrumb(