From e1f4f58d77c462439e5773170592cd0cc1625bf6 Mon Sep 17 00:00:00 2001 From: Brendan Reilly Date: Mar 22 2018 13:51:07 +0000 Subject: restart-hosts fails if provided arguments --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index a6f338a..808f26c 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -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