| OLD | NEW |
| 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 Loading... |
| 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:])) |
| OLD | NEW |