summaryrefslogtreecommitdiff
path: root/virtinst/devicedisk.py
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2014-12-07 10:08:33 -0500
committerCole Robinson <crobinso@redhat.com>2014-12-07 10:08:33 -0500
commit00957db6e01efc3dfa37a544aabd81593ba01f49 (patch)
tree941b031acb55adf0bebf9d64c168fe33deae5e03 /virtinst/devicedisk.py
parentcd305da3f889e63c3d7fd9c3f7591cd2a3f42624 (diff)
downloadvirt-manager-00957db6e01efc3dfa37a544aabd81593ba01f49.tar.gz
devicedisk: Clarify _xmlpath
Diffstat (limited to 'virtinst/devicedisk.py')
-rw-r--r--virtinst/devicedisk.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/virtinst/devicedisk.py b/virtinst/devicedisk.py
index 28ee0423..0bfa8621 100644
--- a/virtinst/devicedisk.py
+++ b/virtinst/devicedisk.py
@@ -657,6 +657,10 @@ class VirtualDisk(VirtualDevice):
return "_source_file"
return None
+
+ # _xmlpath is an abstraction for source file/block/dir paths, since
+ # they don't have any special properties aside from needing to match
+ # 'type' value with the source property used.
def _get_xmlpath(self):
if self._source_file:
return self._source_file
@@ -665,7 +669,6 @@ class VirtualDisk(VirtualDevice):
if self._source_dir:
return self._source_dir
return None
-
def _set_xmlpath(self, val):
self._clear_source_xml()