When starting docker raise proper error if ubridge is not available

Fix #484
This commit is contained in:
Julien Duponchelle 2016-04-08 16:12:41 +02:00
parent ec6e5a6118
commit ae5468a2d3
No known key found for this signature in database
GPG Key ID: F1E2485547D4595D

View File

@ -403,7 +403,7 @@ class BaseVM:
if path == "ubridge": if path == "ubridge":
path = shutil.which("ubridge") path = shutil.which("ubridge")
if path is None: if path is None or len(path) == 0:
raise VMError("uBridge is not installed") raise VMError("uBridge is not installed")
return path return path