Simplified if statement

Simplification of checking the value "got" to the limits
"get_common_version"
TrivialFix

Change-Id: If233b5f1e3162fde74e63e83e015be585d395ba2
This commit is contained in:
Maria Malyarova 2016-07-15 16:11:13 +03:00
parent ca057c7ec7
commit c16a74b962
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class HostVIFInfo(osv_base.VersionedObject, base.ComparableVersionedObject):
minwant = _vers_tuple(self.min_version)
maxwant = _vers_tuple(self.max_version)
if got >= minwant and got <= maxwant:
if minwant <= got <= maxwant:
return regobj.VERSION
raise exception.NoSupportedVIFVersion(vif_name=self.name,