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
  • Loading branch information
pkliczewski authored Oct 10, 2018
2 parents 5b4b5f2 + 935fd32 commit db724df
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 db724df

Please sign in to comment.