diff --git a/app/models/manageiq/providers/redhat/infra_manager/ovirt_services/strategies/v4.rb b/app/models/manageiq/providers/redhat/infra_manager/ovirt_services/strategies/v4.rb index 20230d9fb..0e783d8a9 100644 --- a/app/models/manageiq/providers/redhat/infra_manager/ovirt_services/strategies/v4.rb +++ b/app/models/manageiq/providers/redhat/infra_manager/ovirt_services/strategies/v4.rb @@ -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 diff --git a/spec/models/manageiq/providers/redhat/infra_manager/provision/configuration_spec.rb b/spec/models/manageiq/providers/redhat/infra_manager/provision/configuration_spec.rb index c6cc12234..3645df7fb 100644 --- a/spec/models/manageiq/providers/redhat/infra_manager/provision/configuration_spec.rb +++ b/spec/models/manageiq/providers/redhat/infra_manager/provision/configuration_spec.rb @@ -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")