patches/virt-manager-16-pv-serial-console.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 17086 2ff0733e53d0
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17086
2ff0733e53d0 2009-12-02 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     1
diff -urN virt-manager-0.6.1/src/virtManager/domain.py ../SUNWvirt-manager-0.6.1.hacked/virt-manager-0.6.1/src/virtManager/domain.py
2ff0733e53d0 2009-12-02 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     2
--- virt-manager-0.6.1/src/virtManager/domain.py	2009-01-26 19:33:33.000000000 +0000
2ff0733e53d0 2009-12-02 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     3
+++ ../SUNWvirt-manager-0.6.1.hacked/virt-manager-0.6.1/src/virtManager/domain.py	2009-12-02 11:58:16.226281287 +0000
2ff0733e53d0 2009-12-02 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     4
@@ -566,6 +566,9 @@
2ff0733e53d0 2009-12-02 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     5
             # [ Name, device type, source path
2ff0733e53d0 2009-12-02 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     6
             serial_list = []
2ff0733e53d0 2009-12-02 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     7
             devs = ctx.xpathEval("/domain/devices/serial")
2ff0733e53d0 2009-12-02 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     8
+            if (len(devs) == 0):
2ff0733e53d0 2009-12-02 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     9
+                devs = ctx.xpathEval("/domain/devices/console")
2ff0733e53d0 2009-12-02 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    10
+
2ff0733e53d0 2009-12-02 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    11
             for node in devs:
2ff0733e53d0 2009-12-02 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    12
                 name = "Serial "
2ff0733e53d0 2009-12-02 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    13
                 dev_type = node.prop("type")