Raise error if ubridge is missing

This commit is contained in:
Julien Duponchelle 2016-01-22 10:07:55 +01:00
parent 5deb584a03
commit 179372936e

View File

@ -308,6 +308,9 @@ class BaseVM:
path = self._manager.config.get_section_config("Server").get("ubridge_path", "ubridge")
if path == "ubridge":
path = shutil.which("ubridge")
if path is None:
raise VMError("uBridge is not installed")
return path
@asyncio.coroutine