Use six.viewkeys instead of dict.keys 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. We use the six library to ensure that the behavior
is compatible across versions.
Change-Id: I0723ae10825e1e2d86789627895e3286d8c97602
Resolves-Bug: #1829304
(cherry picked from commit 2c1098b3afb4f5d7cd1d10eaa722652624e6bb74)
Reviewed: https:/ /review. opendev. org/660428 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=8bff653d903 223014f15e6af05 b484bcd2b4a026
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 8bff653d9032230 14f15e6af05b484 bcd2b4a026
Author: Nate Johnston <email address hidden>
Date: Wed May 15 19:18:52 2019 -0400
Use six.viewkeys instead of dict.keys 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. We use the six library to ensure that the behavior
is compatible across versions.
Change-Id: I0723ae10825e1e 2d86789627895e3 286d8c97602 7cd1d10eaa72265 2624e6bb74)
Resolves-Bug: #1829304
(cherry picked from commit 2c1098b3afb4f5d