I added following condition
<% if @libvirt_type.eql?('esxi') -%>