Skip to content

Commit

Permalink
Merge pull request #298 from borod108/bugs/1613326iso_prov_2
Browse files Browse the repository at this point in the history
Fix attach_floppy to pass "floppy" type

(cherry picked from commit db724df)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1613326
  • Loading branch information
pkliczewski authored and simaishi committed Oct 11, 2018
1 parent b28a75e commit 55fa596
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def update_cpu_topology!(cpu_hash)
def attach_floppy(filename_hash)
name, content = filename_hash.first
file = OvirtSDK4::File.new(:name => name, :content => content)
payload = OvirtSDK4::Payload.new(:files => [file])
payload = OvirtSDK4::Payload.new(:files => [file], type: "floppy")
vm = get
vm.payloads ||= []
vm.payloads << payload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
files = payload.files
file = files.first
expect(payloads.count).to eq(1)
expect(payload.type).to eq("floppy")
expect(files.count).to eq(1)
expect(file.name).to eq(cust_template.default_filename)
expect(file.content).to eq("#some_script")
Expand Down

0 comments on commit 55fa596

Please sign in to comment.