Use list instead of six.viewkeys to avoid py2 to py3 problems
This change fixes an 'RuntimeError: dictionary changed size during
iteration' error that is raised because of different behaviour between
python2 and python3. An earlier attempt [1] to use the six library did
not fix the issue.
Reviewed: https:/ /review. opendev. org/662461 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=690e1824a03 c2f6d8a4c84efda 46f3fa376ca508
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit 690e1824a03c2f6 d8a4c84efda46f3 fa376ca508
Author: Nate Johnston <email address hidden>
Date: Thu May 30 08:53:31 2019 -0400
Use list instead of six.viewkeys to avoid py2 to py3 problems
This change fixes an 'RuntimeError: dictionary changed size during
iteration' error that is raised because of different behaviour between
python2 and python3. An earlier attempt [1] to use the six library did
not fix the issue.
[1] https:/ /review. opendev. org/660427
Resolves-Bug: #1829304 0a606327f4f4e4c 92611f161d8 133446c0be4d54c e389f6e0e1)
Change-Id: Ic4c5790a5d66e1
(cherry picked from commit a65ae9c81eea909