From dd2256414bc4768b1959f2a7f5a43b3ae8c1c986 Mon Sep 17 00:00:00 2001 From: Vincent Hanquez Date: Thu, 23 Jul 2009 14:23:19 +0100 Subject: [PATCH] fix the empty string serial argument --- xenvm/vmact.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xenvm/vmact.ml b/xenvm/vmact.ml index 332a44a..3b426d1 100644 --- a/xenvm/vmact.ml +++ b/xenvm/vmact.ml @@ -194,7 +194,7 @@ let dm_info_of_cfg cfg = { Device.Dm.memory = cfg.memory; Device.Dm.boot = cfg.boot; - Device.Dm.serial = cfg.serial; + Device.Dm.serial = if cfg.serial = "" then "pty" else cfg.serial; Device.Dm.vcpus = cfg.vcpus; Device.Dm.nics = nics; Device.Dm.pci_emulations = []; -- 2.39.5