Skip to content

Commit

Permalink
Merge pull request #16160 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
agrare committed Oct 11, 2017
2 parents 0413a06 + 003dde7 commit 9627439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/vm_or_template/operations/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def add_disk(disk_name, disk_size_mb, options = {})

def raw_attach_volume(volume_id, device = nil)
raise _("VM has no EMS, unable to attach volume") unless ext_management_system
run_command_via_parent(:vm_attach_volume, :volume_id, :device)
run_command_via_parent(:vm_attach_volume, :volume_id => volume_id, :device => device)
end

def attach_volume(volume_id, device = nil)
Expand All @@ -101,7 +101,7 @@ def attach_volume(volume_id, device = nil)

def raw_detach_volume(volume_id)
raise _("VM has no EMS, unable to detach volume") unless ext_management_system
run_command_via_parent(:vm_detach_volume, :volume_id)
run_command_via_parent(:vm_detach_volume, :volume_id => volume_id)
end

def detach_volume(volume_id, device = nil)
Expand Down

0 comments on commit 9627439

Please sign in to comment.