virt-install: Make --disk $URL 'just work'

If VirtualDisk.path is set to a URL, parse it and fill in all the
source_* values automagically.
This commit is contained in:
Cole Robinson
2014-12-09 09:20:18 -05:00
parent 3ac272e635
commit 9952764dda
7 changed files with 99 additions and 28 deletions

View File

@@ -349,11 +349,8 @@ class XMLParseTest(unittest.TestCase):
disk = _get_disk("sda")
check = self._make_checker(disk)
check("source_protocol", None, "http")
check("source_name", None, "/my/file")
check("source_host_name", None, "exaaaaample.com")
check("path", None, "http://[1:2:3:4:5:6:7:8]:1122/my/file")
disk.sync_path_props()
check("path", "http://exaaaaample.com/my/file")
disk = _get_disk("fda")
check = self._make_checker(disk)