Raise error if ubridge is missing

This commit is contained in:
Julien Duponchelle committed 2016-01-22 10:07:55 +01:00
1 parent 5deb584a03
commit 179372936e
1 file changed
+3
+3
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