Skip to content

Commit

Permalink
Merge pull request #127 from Eccomiqua/ValidateMinVersionFix
Browse files Browse the repository at this point in the history
Fix-126: Validate min version fix
  • Loading branch information
mraineri authored Jan 7, 2022
2 parents 689acfe + ab26f23 commit ba217e2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions common/interop.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,14 @@ def validateMinVersion(version, profile_entry):

paramPass = True
for a, b in zip(profile_entry_split, payload_split):
b = 0 if b is None else b
a = 0 if a is None else a
if b.isnumeric() and a.isnumeric() and b is not None and a is not None:
b = int(b)
a = int(a)
else:
b = 0 if b is None else b
a = 0 if a is None else b
if type(b) is not type(a):
break
if (b > a):
break
if (b < a):
Expand Down

0 comments on commit ba217e2

Please sign in to comment.