From c7f385b0ff4997b917930f260281180acb0b398a Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Fri, 3 Sep 2010 14:03:30 -0400 Subject: [PATCH] details: Fix listing/removal of serial/parallel combinations --- src/virtManager/domain.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/virtManager/domain.py b/src/virtManager/domain.py index a3d555a94..ad2cce0f1 100644 --- a/src/virtManager/domain.py +++ b/src/virtManager/domain.py @@ -603,8 +603,8 @@ class vmmDomainBase(vmmLibvirtObject): # [device type, unique, display string, target_port, # char device type, source_path, is_console_dup_of_serial? - dev = [char_type, target_port, - "%s:%s" % (char_type, target_port), target_port, + disp = "%s:%s" % (char_type, target_port) + dev = [char_type, disp, disp, target_port, dev_type, source_path, False] if node.name == "console": @@ -811,6 +811,8 @@ class vmmDomainBase(vmmLibvirtObject): elif (dev_type == "parallel" or dev_type == "console" or dev_type == "serial"): + if dev_id_info.count(":"): + ignore, dev_id_info = dev_id_info.split(":") xpath = ("/domain/devices/%s[target/@port='%s'][1]" % (dev_type, dev_id_info))