mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #871 from anastasiiavlaskina/master
Remove nested section in domain template
This commit is contained in:
commit
ed1a676982
@ -9,8 +9,12 @@
|
|||||||
<% if @cpu_mode != 'host-passthrough' %>
|
<% if @cpu_mode != 'host-passthrough' %>
|
||||||
<model fallback='<%= @cpu_fallback %>'><% if @cpu_mode == 'custom' %><%= @cpu_model %><% end %></model>
|
<model fallback='<%= @cpu_fallback %>'><% if @cpu_mode == 'custom' %><%= @cpu_model %><% end %></model>
|
||||||
<% if @nested %>
|
<% if @nested %>
|
||||||
<feature policy='optional' name='vmx'/>
|
<% if @cpu_features.select{|x| x[:name] == 'vmx'}.empty? %>
|
||||||
<feature policy='optional' name='svm'/>
|
<feature policy='optional' name='vmx'/>
|
||||||
|
<% end %>
|
||||||
|
<% if @cpu_features.select{|x| x[:name] == 'svm'}.empty? %>
|
||||||
|
<feature policy='optional' name='svm'/>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% @cpu_features.each do |cpu_feature| %>
|
<% @cpu_features.each do |cpu_feature| %>
|
||||||
<feature name='<%= cpu_feature[:name] %>' policy='<%= cpu_feature[:policy] %>'/>
|
<feature name='<%= cpu_feature[:name] %>' policy='<%= cpu_feature[:policy] %>'/>
|
||||||
|
Loading…
Reference in New Issue
Block a user