summaryrefslogtreecommitdiff
path: root/virtManager/addhardware.py
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2019-05-13 14:23:27 -0400
committerCole Robinson <crobinso@redhat.com>2019-05-14 11:57:50 -0400
commitb2b9d7d366e7d7adff5ce1aa9b2e31278017b195 (patch)
treeec317b604e18ebc8ff10673bf05b77059d603172 /virtManager/addhardware.py
parent1b3e8e1a3234d8df42ced2673f9e020e528d0332 (diff)
downloadvirt-manager-b2b9d7d366e7d7adff5ce1aa9b2e31278017b195.tar.gz
devices: char: Add CharSource
Move all ./source handling into CharSource, which will be reused by other device classes as well. This requires us to add ../ handling into our xmlapi xpath engine
Diffstat (limited to 'virtManager/addhardware.py')
-rw-r--r--virtManager/addhardware.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py
index 82332cc5..da51b3f1 100644
--- a/virtManager/addhardware.py
+++ b/virtManager/addhardware.py
@@ -1337,8 +1337,8 @@ class vmmAddHardware(vmmGObjectUI):
dev = char_class(self.conn.get_backend())
dev.type = devtype
- dev.source_path = source_path
- dev.source_channel = source_channel
+ dev.source.path = source_path
+ dev.source.channel = source_channel
dev.target_name = target_name
dev.target_type = target_type
return dev