change the field allow_network_sriov to allow-network-sriov according to template change

This commit is contained in:
Jisheng Xing 2018-03-27 16:10:58 +08:00 committed by Mihaela Stoica
parent a4bff0c560
commit be88e56dbc

View File

@ -435,7 +435,7 @@ namespace XenAPI
try
{
XmlNode xn = xd.SelectSingleNode(@"restrictions/restriction[@field='allow_network_sriov']");
XmlNode xn = xd.SelectSingleNode(@"restrictions/restriction[@field='allow-network-sriov']");
if (xn == null || xn.Attributes == null)
return false;