Skip to content

Commit

Permalink
fixup! Fixes #18645: Upgrading 6.2 nightly to 6.2 nightly with plugin…
Browse files Browse the repository at this point in the history
…s fails

Fixes #18645: Upgrading 6.2 nightly to 6.2 nightly with plugins fails
  • Loading branch information
VinceMacBuche committed Nov 23, 2020
1 parent e6e6178 commit d7da9b5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions relay/sources/rudder-pkg/lib/rudder-pkg/rudderPkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,14 +351,13 @@ def upgrade_all(mode, quiet=False):
pkgs = plugin.Plugin(p)
pkgs.getAvailablePackages()
if mode == "nightly":
lastest_packages = pkgs.getLatestCompatibleNightly()
latest_packages = pkgs.getLatestCompatibleNightly()
if (latest_packages is None):
print("No newer %s compatible versions found for the plugin %s"%(mode, p))
else:
latestVersion = latest_packages.version
latestVersion = pkgs.getLatestCompatibleNightly().version
else:
lastest_packages = pkgs.getLatestCompatibleRelease()
latest_packages = pkgs.getLatestCompatibleRelease()
if (latest_packages is None):
print("No newer %s compatible versions found for the plugin %s"%(mode, p))
else:
Expand Down

0 comments on commit d7da9b5

Please sign in to comment.