Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: infra/tools/restart/__main__.py

Issue 2207813002: Prompt for a reason when restarting a master, include that reason in the CL description. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | infra/tools/restart/restart.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright 2014 Google Inc. All Rights Reserved. 2 # Copyright 2014 Google Inc. All Rights Reserved.
3 # pylint: disable=F0401 3 # pylint: disable=F0401
4 4
5 """Restart a master via master-manager.""" 5 """Restart a master via master-manager."""
6 6
7 7
8 import argparse 8 import argparse
9 import datetime 9 import datetime
10 import sys 10 import sys
(...skipping 21 matching lines...) Expand all
32 if (args.minutes_in_future > 0 and args.minutes_in_future != 15) and args.eod: 32 if (args.minutes_in_future > 0 and args.minutes_in_future != 15) and args.eod:
33 parser.error('minutes-in-future is mutually exclusive with --eod') 33 parser.error('minutes-in-future is mutually exclusive with --eod')
34 34
35 if args.eod: 35 if args.eod:
36 restart_time = None 36 restart_time = None
37 else: 37 else:
38 restart_time = restart.get_restart_time_delta(args.minutes_in_future) 38 restart_time = restart.get_restart_time_delta(args.minutes_in_future)
39 39
40 return restart.run(args.masters, restart_time, 40 return restart.run(args.masters, restart_time,
41 args.reviewer, args.bug, args.force, args.no_commit, 41 args.reviewer, args.bug, args.force, args.no_commit,
42 args.desired_state) 42 args.desired_state, args.reason)
43 43
44 44
45 if __name__ == '__main__': 45 if __name__ == '__main__':
46 sys.exit(main(sys.argv[1:])) 46 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | infra/tools/restart/restart.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698