devicedisk: Short circuit path_exists(None)

This commit is contained in:
Cole Robinson
2014-02-03 16:43:25 -05:00
parent 8917445e32
commit e0103286bd
+3
View File
@@ -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