#1441 delete_build does not handle results of lazy build_references call
Closed: Fixed 4 years ago by mikem. Opened 4 years ago by mikem.

The build references check was recently adjusted to be lazy, but delete_build errors when fields are missing in the return. E.g.

WARNING:koji.xmlrpc:Traceback (most recent call last):
  File "/usr/share/koji-hub/kojixmlrpc.py", line 228, in _wrap_handler
    response = handler(environ)
  File "/usr/share/koji-hub/kojixmlrpc.py", line 271, in handle_rpc
    return self._dispatch(method, params)
  File "/usr/share/koji-hub/kojixmlrpc.py", line 308, in _dispatch
    ret = koji.util.call_with_argcheck(func, params, opts)
  File "/usr/lib/python2.7/site-packages/koji/util.py", line 216, in call_with_argcheck
    return func(*args, **kwargs)
  File "/usr/share/koji-hub/kojihub.py", line 7215, in delete_build
    if refs['archives']:
KeyError: 'archives'

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #1442 Merged 4 years ago