diff --git a/app/models/vm_or_template/operations/configuration.rb b/app/models/vm_or_template/operations/configuration.rb index 3c33bdd58d9..df3ed696ff3 100644 --- a/app/models/vm_or_template/operations/configuration.rb +++ b/app/models/vm_or_template/operations/configuration.rb @@ -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) @@ -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)