restart-hosts fails if provided arguments
This commit is contained in:
parent
6e4959f7b6
commit
f33d01ecd4
1 changed files with 4 additions and 0 deletions
|
|
@ -1069,6 +1069,10 @@ def handle_restart_hosts(options, session, args):
|
|||
help=_("Time out after N seconds"))
|
||||
(my_opts, args) = parser.parse_args(args)
|
||||
|
||||
if len(args) > 0:
|
||||
parser.error(_("restart-hosts does not accept arguments"))
|
||||
assert False # pragma: no cover
|
||||
|
||||
activate_session(session, options)
|
||||
|
||||
# check for existing restart tasks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue