mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-23 19:31:00 +08:00
bug needs to use a tuple, not the generator
This commit is contained in:
committed by
Jude Nelson
parent
08e390b288
commit
c6125f5efe
@@ -1182,8 +1182,8 @@ def versions_need_upgrade(v_from, v_to):
|
||||
(lambda v : v[:2] < (0,14))
|
||||
]
|
||||
|
||||
v1 = ( int(x) for x in str(v_from).split('.') )
|
||||
v2 = ( int(x) for x in str(v_to).split('.') )
|
||||
v1 = tuple( int(x) for x in str(v_from).split('.') )
|
||||
v2 = tuple( int(x) for x in str(v_to).split('.') )
|
||||
if len(v1) < 3 or len(v2) < 3:
|
||||
return True # one isn't semver
|
||||
if v1[:2] == v2[:2]:
|
||||
|
||||
Reference in New Issue
Block a user