#2269 koji-gc: TypeError: 'VirtualCall' object is not subscriptable
Closed: Duplicate by mikem. Opened by amessina.

With koji-utils-1.21.0-2.fc32.noarch:

Getting list of builds in trash...
...got 2 builds
1st pass: blacklist
2nd pass: tags
3rd pass: signatures
4th pass: history
detected unhandled Python exception in '/usr/sbin/koji-gc'
Traceback (most recent call last):
  File "/usr/sbin/koji-gc", line 1023, in <module>
    rv = main(args)
  File "/usr/sbin/koji-gc", line 461, in main
    globals()['handle_' + x]()
  File "/usr/sbin/koji-gc", line 699, in handle_delete
    mcall.queryHistory(build=binfo['id'], tag=trashcan_tag)['tag_listing']
TypeError: 'VirtualCall' object is not subscriptable

Temporarily switching back to mcall.tagHistory(build=binfo['id'], tag=trashcan_tag) resolves the issue for now.


Temporarily switching back to mcall.tagHistory(build=binfo['id'], tag=trashcan_tag) resolves the issue for now.

That's only part of the fix. Whenever this code was ported to use multicall, the index wasn't handled correctly. When the multicall is later run, the code needs to apply the index on that result.

Metadata Update from @mikem:
- Custom field Size adjusted to None

Also, duplicate of #2267

Metadata Update from @mikem:
- Issue close_status updated to: Duplicate
- Issue status updated to: Closed (was: Open)

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

Please continue any further discussion there.

Metadata