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/662464 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=aa0d4f5f641 fb8fd88616b1b29 1bcff826d9c0ac
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit aa0d4f5f641fb8f d88616b1b291bcf f826d9c0ac
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