Signed-off-by: Ryan Moeller <ryan(a)iXsystems.com>
---
src/bhyve/bhyve_command.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/bhyve/bhyve_command.c b/src/bhyve/bhyve_command.c
index dbf6fbf168..14e80e6eec 100644
--- a/src/bhyve/bhyve_command.c
+++ b/src/bhyve/bhyve_command.c
@@ -997,11 +997,8 @@ virBhyveGetBootDisk(virDomainDefPtr def)
virDomainDiskDefPtr match = NULL;
int boot_dev = -1;
- if (def->ndisks < 1) {
- virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
- _("Domain should have at least one disk defined"));
+ if (def->ndisks == 0)
return NULL;
- }
if (def->os.nBootDevs > 1) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
--
2.24.1