Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 6c20c0f

Browse files
tomlanyoncrobinso
authored andcommitted
virt-install: don't fail on storage pools without targets.
(crobinso: Add Tom to AUTHORS)
1 parent dca5a4d commit 6c20c0f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ Patches also received from
7474
Martin Kletzander <mkletzan-at-redhat-dot-com>
7575
Chen Hanxiao <chenhanxiao-at-cn-dot-fujitsu-dot-com>
7676
David Shane Holden <dpejesh@yahoo.com>
77+
Tom Lanyon <tom@oneshoeco.com>
7778

7879
...send patches and get your name here...
7980

virtinst/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def lookup_pool_by_path(conn, path):
545545
def check_pool(poolname, path):
546546
pool = conn.storagePoolLookupByName(poolname)
547547
xml_path = get_xml_path(pool.XMLDesc(0), "/pool/target/path")
548-
if os.path.abspath(xml_path) == path:
548+
if xml_path is not None and os.path.abspath(xml_path) == path:
549549
return pool
550550

551551
running_list = conn.listStoragePools()

0 commit comments

Comments
 (0)