Drop duplicate code when ubridge is too old

Fix #405
This commit is contained in:
Julien Duponchelle
2016-02-01 16:05:37 +01:00
parent 03414993dc
commit 98537a242a
2 changed files with 3 additions and 5 deletions

View File

@ -330,8 +330,6 @@ class BaseVM:
yield from self._ubridge_hypervisor.start()
log.info("Hypervisor {}:{} has successfully started".format(self._ubridge_hypervisor.host, self._ubridge_hypervisor.port))
yield from self._ubridge_hypervisor.connect()
if parse_version(self._ubridge_hypervisor.version) < parse_version('0.9.3'):
raise VMError("uBridge version must be >= 0.9.3, detected version is {}".format(self._ubridge_hypervisor.version))
@property
def hw_virtualization(self):