Skip to content

Commit

Permalink
Merge pull request #112 from sseago/bz1494442
Browse files Browse the repository at this point in the history
bug 1494442: fix attach/detach disks automate methods
  • Loading branch information
tzumainn authored Oct 16, 2017
2 parents ef12d29 + 1b4d3f1 commit 315fdb3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/models/manageiq/providers/openstack/cloud_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,13 @@ def vm_delete_evm_snapshot(vm, image_id)
raise
end

def vm_attach_volume(vm, volume_id, device = nil)
volume = find_by_id_filtered(CloudVolume, volume_id)
volume.raw_attach_volume(vm.ems_ref, device)
def vm_attach_volume(vm, options)
volume = CloudVolume.find_by(:id => options[:volume_id])
volume.raw_attach_volume(vm.ems_ref, options[:device])
end

def vm_detach_volume(vm, volume_id)
volume = find_by_id_filtered(CloudVolume, volume_id)
def vm_detach_volume(vm, options)
volume = CloudVolume.find_by(:id => options[:volume_id])
volume.raw_detach_volume(vm.ems_ref)
end

Expand Down

0 comments on commit 315fdb3

Please sign in to comment.