Skip to content

Commit

Permalink
Add comment explaining why we don't run bootstrap in some upgrade cases
Browse files Browse the repository at this point in the history
  • Loading branch information
menivaitsi committed Jul 29, 2016
1 parent 49e4808 commit 545030f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions appscale/tools/appscale_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,9 @@ def upgrade(cls, options):
current_version = RemoteHelper.get_host_appscale_version(
master_ip, options.keyname, options.verbose)

# Don't run bootstrap if current version is later that the most recent
# public one. Covers cases of revoked versions/tags and ensures we won't
# try to downgrade the code.
if current_version >= upgrade_version_available:
AppScaleLogger.log(
'AppScale is already up to date. Skipping code upgrade.')
Expand Down

0 comments on commit 545030f

Please sign in to comment.