From: Vincent Hanquez Date: Thu, 23 Jul 2009 13:23:19 +0000 (+0100) Subject: fix the empty string serial argument X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=dd2256414bc4768b1959f2a7f5a43b3ae8c1c986;p=xenclient%2Ftoolstack.git fix the empty string serial argument --- 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 = [];