Skip to content

Commit

Permalink
Allow passing options when adding a disk.
Browse files Browse the repository at this point in the history
  • Loading branch information
lfu committed Mar 15, 2017
1 parent d3aa8e7 commit 9d8d3be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def set_memory(size_mb, options = {})
end

def add_disk(disk_name, disk_size_mb, options = {})
sync_or_async_ems_operation(options[:sync], "add_disk", [disk_name, disk_size_mb])
sync_or_async_ems_operation(options[:sync], "add_disk", [disk_name, disk_size_mb, options])
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ module MiqAeServiceManageIQ_Providers_Vmware_InfraManager_VmSpec
end

it "#add_disk" do
service_vm.add_disk('disk_1', 100)
service_vm.add_disk('disk_1', 100, :thin_provisioned => true)

expect(MiqQueue.first).to have_attributes(
@base_queue_options.merge(
:method_name => 'add_disk',
:args => ['disk_1', 100])
:args => ['disk_1', 100, :thin_provisioned => true])
)
end

Expand Down

0 comments on commit 9d8d3be

Please sign in to comment.