mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-10 23:45:49 -06:00
virt-install: don't fail on storage pools without targets.
(crobinso: Add Tom to AUTHORS)
This commit is contained in:
parent
ae0e151c8a
commit
ef2bdc4722
1
AUTHORS
1
AUTHORS
@ -157,6 +157,7 @@ Further patches have been submitted by:
|
|||||||
John Doyle <spdubhghaill@gmail.com>
|
John Doyle <spdubhghaill@gmail.com>
|
||||||
Giuseppe Scrivano <gscrivano@gnu.org>
|
Giuseppe Scrivano <gscrivano@gnu.org>
|
||||||
Ken ICHIKAWA <ichikawa.ken@jp.fujitsu.com>
|
Ken ICHIKAWA <ichikawa.ken@jp.fujitsu.com>
|
||||||
|
Tom Lanyon <tom@oneshoeco.com>
|
||||||
|
|
||||||
<...send a patch & get your name here...>
|
<...send a patch & get your name here...>
|
||||||
|
|
||||||
|
@ -544,7 +544,7 @@ def lookup_pool_by_path(conn, path):
|
|||||||
def check_pool(poolname, path):
|
def check_pool(poolname, path):
|
||||||
pool = conn.storagePoolLookupByName(poolname)
|
pool = conn.storagePoolLookupByName(poolname)
|
||||||
xml_path = get_xml_path(pool.XMLDesc(0), "/pool/target/path")
|
xml_path = get_xml_path(pool.XMLDesc(0), "/pool/target/path")
|
||||||
if os.path.abspath(xml_path) == path:
|
if xml_path is not None and os.path.abspath(xml_path) == path:
|
||||||
return pool
|
return pool
|
||||||
|
|
||||||
running_list = conn.listStoragePools()
|
running_list = conn.listStoragePools()
|
||||||
|
Loading…
Reference in New Issue
Block a user