diff options
author | Cole Robinson <crobinso@redhat.com> | 2020-02-02 19:43:06 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2020-02-03 07:05:11 -0500 |
commit | bea5e56c26f6bddb95d07cab65fad7a0306ec7a4 (patch) | |
tree | 4762cdb0353087d0f3372009f23016ac1667f257 /virtinst/storage.py | |
parent | 9a0d49a71869e5c3b1680b3d2e528658347609c8 (diff) | |
download | virt-manager-bea5e56c26f6bddb95d07cab65fad7a0306ec7a4.tar.gz |
virtinst: connection: Add is_privileged
Replace the is_session and is_system distinction with variants
of is_privileged. This matches what libvirt uses internally, and
will help with supporting qemu:///embed at some point
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virtinst/storage.py')
-rw-r--r-- | virtinst/storage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virtinst/storage.py b/virtinst/storage.py index 8ead2175..6e6d88f2 100644 --- a/virtinst/storage.py +++ b/virtinst/storage.py @@ -49,7 +49,7 @@ class _StorageObject(XMLBuilder): def _preferred_default_pool_path(conn): path = "/var/lib/libvirt/images" - if conn.is_session_uri(): + if conn.is_unprivileged(): path = os.path.expanduser("~/.local/share/libvirt/images") return path |