Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug 1494442: fix attach/detach disks automate methods #16160

Merged
merged 1 commit into from
Oct 11, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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