Skip to content

Commit

Permalink
Merge pull request #601 from gberginc/delegate_available_vms_to_volume
Browse files Browse the repository at this point in the history
Allow cloud volume to provide list of supported VMs for attachment
  • Loading branch information
Dan Clarizio committed Mar 10, 2017
2 parents dcb30b2 + 11e5c4c commit d57d3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/cloud_volume_controller.rb
Expand Up @@ -134,7 +134,7 @@ def attach
assert_privileges("cloud_volume_attach")
@vm_choices = {}
@volume = find_by_id_filtered(CloudVolume, params[:id])
@volume.cloud_tenant.vms.each { |vm| @vm_choices[vm.name] = vm.id }
@volume.available_vms.each { |vm| @vm_choices[vm.name] = vm.id }

@in_a_form = true
drop_breadcrumb(
Expand Down

0 comments on commit d57d3d6

Please sign in to comment.