kvm: for disabling pxe, pass empty file

Passing the file argument to the xml break for EL 7.1, the fix removes
the argument as just passing rombar='off' with its file arg to be empty string.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #290
This commit is contained in:
Rohit Yadav 2015-05-22 15:03:35 +01:00
parent 8eafdbd224
commit aafa0c80b3

View File

@ -967,7 +967,7 @@ public class LibvirtVMDef {
netBuilder.append("<script path='" + _scriptPath + "'/>\n");
}
if (_pxeDisable) {
netBuilder.append("<rom bar='off' file='dummy'/>");
netBuilder.append("<rom bar='off' file=''/>");
}
if (_virtualPortType != null) {
netBuilder.append("<virtualport type='" + _virtualPortType + "'>\n");