mirror of
https://github.com/virt-manager/virt-manager.git
synced 2026-08-09 12:38:05 -05:00
devicedisk: Short circuit path_exists(None)
This commit is contained in:
@@ -215,6 +215,9 @@ class VirtualDisk(VirtualDevice):
|
||||
"""
|
||||
Check if path exists. If we can't determine, return False
|
||||
"""
|
||||
if path is None:
|
||||
return False
|
||||
|
||||
try:
|
||||
vol = None
|
||||
path_is_pool = False
|
||||
|
||||
Reference in New Issue
Block a user