#1441 delete_build does not handle results of lazy build_references call
Closed: Fixed by mikem. Opened 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'

fix forthcoming

Commit 98c983b1 fixes this issue

Commit 5a36065d fixes this issue

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/1441

Please continue any further discussion there.

Metadata
Related Pull Requests