Deprecated remove-channel CLI and removeChannel API

Fixes: https://pagure.io/koji/issue/1206
This commit is contained in:
Jana Cupova 2021-12-02 12:12:43 +01:00 committed by Tomas Kopecek
parent a227cce7a5
commit c7fd26aeda
3 changed files with 5 additions and 3 deletions

View file

@ -336,6 +336,7 @@ def handle_remove_channel(goptions, session, args):
parser = OptionParser(usage=get_usage_str(usage))
parser.add_option("--force", action="store_true", help="force removal, if possible")
(options, args) = parser.parse_args(args)
print("remove-channel is deprecated and will be removed in 1.30")
if len(args) != 1:
parser.error("Incorrect number of arguments")
activate_session(session, goptions)