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/660427 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=d9082270504 728f45994cfd3b7 9f4ab8ebe53473
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit d9082270504728f 45994cfd3b79f4a b8ebe53473
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