Skip to content

Commit

Permalink
Fixes #3337 uses exit code 0 for check_for_updates
Browse files Browse the repository at this point in the history
(cherry picked from commit d5c95dd)
  • Loading branch information
kushaldas authored and redshiftzero committed May 1, 2018
1 parent cc0caca commit 71dab2c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion admin/securedrop_admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,12 @@ def run_tails_config(args):
cwd=args.ansible_path)


def check_for_updates_wrapper(args):
res, tag = check_for_updates(args)
# Because the command worked properly exit with 0.
return 0


def check_for_updates(args):
"""Check for SecureDrop updates"""
sdlog.info("Checking for SecureDrop updates...")
Expand Down Expand Up @@ -702,7 +708,7 @@ class ArgParseFormatterCombo(argparse.ArgumentDefaultsHelpFormatter,

parse_check_updates = subparsers.add_parser('check_for_updates',
help=check_for_updates.__doc__)
parse_check_updates.set_defaults(func=check_for_updates)
parse_check_updates.set_defaults(func=check_for_updates_wrapper)

parse_logs = subparsers.add_parser('logs',
help=get_logs.__doc__)
Expand Down

0 comments on commit 71dab2c

Please sign in to comment.