Check for the Dynamips version.

This commit is contained in:
grossmj
2014-04-09 15:59:51 -06:00
parent 2bb3c0b466
commit 0110fe33d4
2 changed files with 5 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class DynamipsHypervisor(object):
raise DynamipsError("Could not connect to server: {}".format(e))
try:
self._version = self.send("hypervisor version")[0][4:]
self._version = self.send("hypervisor version")[0].split("-", 1)[0]
except IndexError:
self._version = "Unknown"