From b4c936fa8e670f17cda22370b10567b73e87d030 Mon Sep 17 00:00:00 2001 From: Yuming Zhu Date: Apr 19 2018 05:54:30 +0000 Subject: fix reference source -> src for build task in make_task --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 303ab9a..455e86f 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -516,9 +516,9 @@ def make_task(method, arglist, **opts): policy_data['req_channel'] = opts['channel'] req_channel_id = get_channel_id(opts['channel'], strict=True) if method == 'build': - # arglist = source, target, [opts] - args = koji.decode_args2(arglist, ('source', 'target', 'opts')) - policy_data['source'] = args['source'] + # arglist = src, target, [opts] + args = koji.decode_args2(arglist, ('src', 'target', 'opts')) + policy_data['source'] = args['src'] if args['target'] is None: #koji-shadow makes null-target builds policy_data['target'] = None