Simplified if statement
Simplification of checking the value "got" to the limits "get_common_version" TrivialFix Change-Id: If233b5f1e3162fde74e63e83e015be585d395ba2
This commit is contained in:
parent
ca057c7ec7
commit
c16a74b962
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user