diff options
author | Cole Robinson <crobinso@redhat.com> | 2016-06-13 14:16:36 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2016-06-13 18:37:30 -0400 |
commit | 7bee9272762d09d4690141d2d9726ed5da9127a4 (patch) | |
tree | ee52a8638e6c2ea29947141c00ea3abaa66deadc /virtinst/uri.py | |
parent | efad67aab20c0673031c8c0ad4848e22246570d0 (diff) | |
download | virt-manager-7bee9272762d09d4690141d2d9726ed5da9127a4.tar.gz |
conn: Stop using VirtOptionParser
It only needs a minimal portion of the functionality, so separate
that out and use it explicitly. Clean up some of the surrounding
cli.py bits as well
Diffstat (limited to 'virtinst/uri.py')
-rw-r--r-- | virtinst/uri.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/virtinst/uri.py b/virtinst/uri.py index cb098604..08c7bb0d 100644 --- a/virtinst/uri.py +++ b/virtinst/uri.py @@ -20,7 +20,7 @@ import logging import re -from .cli import VirtOptionString +from .cli import parse_optstr_tuples def sanitize_xml_for_test_define(xml): @@ -141,8 +141,7 @@ class MagicURI(object): uri = uri.replace(self.VIRTINST_URI_MAGIC_PREFIX, "") ret = uri.split(",", 1) self.open_uri = ret[0] - opts = VirtOptionString( - len(ret) > 1 and ret[1] or "", [], None).optsdict + opts = dict(parse_optstr_tuples(len(ret) > 1 and ret[1] or "")) def pop_bool(field): ret = field in opts |