Bug 1301537 - RuntimeError: dictionary changed size during iteration
RuntimeError: dictionary changed size during iteration
Product: Fedora
Classification: Fedora
Component: python-fedora (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Fedora Infrastructure SIG
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2016-01-25 05:30 EST by Miroslav Suchý
Modified: 2016-03-28 21:33 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-03-28 21:33:07 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Miroslav Suchý 2016-01-25 05:30:49 EST
Description of problem:
When I call client.group_members("packager") it results in traceback (see below)

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
from fedora.client import AuthError, AccountSystem
client = AccountSystem()
#client.username = "msuchy"
#client.password = "XXXX"
packagers = client.group_members("packager")

Actual results:
$ ./guard-fedora-sponsors.py
Traceback (most recent call last):
  File "./guard-fedora-sponsors.py", line 97, in <module>
    packagers = client.group_members("packager")
  File "/usr/lib/python3.4/site-packages/fedora/client/fas2.py", line 395, in group_members
    quote(groupname), auth=True)
  File "/usr/lib/python3.4/site-packages/fedora/client/baseclient.py", line 362, in send_request
    for key, value in auth_params.items() if not value]
  File "/usr/lib/python3.4/site-packages/fedora/client/baseclient.py", line 361, in <listcomp>
RuntimeError: dictionary changed size during iteration
Comment 1 Ralph Bean 2016-01-25 10:37:14 EST
Should be fixed upstream here:  https://github.com/fedora-infra/python-fedora/pull/177/files

Note You need to log in before you can comment on or make changes to this bug.