Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/fog/libvirt/models/compute/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,11 @@
end
end

if volumes.any? { |v| v.respond_to?(:bus) && v.bus == 'scsi' } ||

Check warning on line 399 in lib/fog/libvirt/models/compute/server.rb

View workflow job for this annotation

GitHub Actions / runner / rubocop

[rubocop] reported by reviewdog 🐶 Trailing whitespace detected. Raw Output: lib/fog/libvirt/models/compute/server.rb:399:82: C: Layout/TrailingWhitespace: Trailing whitespace detected.
(respond_to?(:disks) && disks.any? { |d| d.is_a?(Hash) && d[:bus] == 'scsi' })

Check warning on line 400 in lib/fog/libvirt/models/compute/server.rb

View workflow job for this annotation

GitHub Actions / runner / rubocop

[rubocop] reported by reviewdog 🐶 Align the operands of a condition in an `if` statement spanning multiple lines. Raw Output: lib/fog/libvirt/models/compute/server.rb:400:21: C: Layout/MultilineOperationIndentation: Align the operands of a condition in an `if` statement spanning multiple lines.
xml.controller(:type => 'scsi', :index => '0', :model => 'virtio-scsi')
end

nics.each do |nic|
xml.interface(:type => nic.type) do
xml.mac(:address => nic.mac) if nic.mac
Expand Down
Loading