Skip to content

Commit

Permalink
Update LibVirtDriverKVM.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben S. Montero authored Sep 16, 2019
1 parent 7bc09e5 commit 17e9780
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/vmm/LibVirtDriverKVM.cc
Original file line number Diff line number Diff line change
Expand Up @@ -354,13 +354,17 @@ static string get_disk_bus(std::string &machine, std::string &target,
return sd_default;
case 'v': // vd_ disk
return "virtio";
default:
{
std::size_t found = machine.find("q35");

if (found != std::string::npos)
{
return "sata";
}
}
}

std::size_t found = machine.find("q35");
if (found != std::string::npos)
{
return "sata";
}
return "ide";
}

Expand Down

2 comments on commit 17e9780

@GitCop
Copy link

@GitCop GitCop commented on 17e9780 Sep 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were the following issues with your Pull Request

  • Subject needs to conform to "%{type} #%{issue_number}: %{description}"

Guidelines are available at https://github.com/OpenNebula/one/blob/master/share/doc/dev/COMMIT_MESSAGES.md


This message was auto-generated by https://gitcop.com

@GitCop
Copy link

@GitCop GitCop commented on 17e9780 Sep 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were the following issues with your Pull Request

  • Subject needs to conform to "%{type} #%{issue_number}: %{description}"

Guidelines are available at https://github.com/OpenNebula/one/blob/master/share/doc/dev/COMMIT_MESSAGES.md


This message was auto-generated by https://gitcop.com

Please sign in to comment.