Skip to content

Commit

Permalink
Now support N and N-1 for real
Browse files Browse the repository at this point in the history
Previous patch contained all necessery refactoring so this
one will be only changing the upgrade_paths.json and modifying
the get_target_version logic.
  • Loading branch information
fernflower committed Jan 7, 2022
1 parent 8220b70 commit f3a739f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion commands/command_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def get_supported_target_versions(flavour=get_upgrade_flavour()):

def get_target_version(flavour):
target_versions = get_supported_target_versions(flavour)
return target_versions[0] if target_versions else None
return target_versions[-1] if target_versions else None


def vet_upgrade_path(args):
Expand Down
10 changes: 5 additions & 5 deletions repos/system_upgrade/common/files/upgrade_paths.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"default": {
"7.6": ["8.4"],
"7.9": ["8.4"],
"7.6": ["8.4", "8.6"],
"7.9": ["8.4", "8.6"],
"8.6": ["9.0"],
"7": ["8.4"],
"7": ["8.4", "8.6"],
"8": ["9.0"]
},
"saphana": {
"7.9": ["8.2"],
"7": ["8.4"]
"7.9": ["8.2", "8.4"],
"7": ["8.2", "8.4"]
}
}

0 comments on commit f3a739f

Please sign in to comment.