mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-23 03:20:19 +08:00
version bump plus fix in the migration code
This commit is contained in:
committed by
Jude Nelson
parent
4c4ea22576
commit
08e390b288
@@ -1182,8 +1182,8 @@ def versions_need_upgrade(v_from, v_to):
|
||||
(lambda v : v[:2] < (0,14))
|
||||
]
|
||||
|
||||
v1 = tuple( int(x) for x in str(v_from).split('.') )
|
||||
v2 = tuple( int(x) for x in str(v_to).split('.') )
|
||||
v1 = ( int(x) for x in str(v_from).split('.') )
|
||||
v2 = ( 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]:
|
||||
|
||||
@@ -24,4 +24,4 @@
|
||||
__version_major__ = '0'
|
||||
__version_minor__ = '16'
|
||||
__version_patch__ = '0'
|
||||
__version__ = '{}.{}.{}.1'.format(__version_major__, __version_minor__, __version_patch__)
|
||||
__version__ = '{}.{}.{}.0'.format(__version_major__, __version_minor__, __version_patch__)
|
||||
|
||||
Reference in New Issue
Block a user