nfv/nfv/nfv-vim/nfv_vim/audits
Dan Voiculeasa 6b6d13a24b py3: nfv wrap dict.keys() in list()
In python2 dict.keys() returns a list, while in python3 it returns an
iterator. Modifying a dict while iterating over it(insert, delete)
produces a runtime error.

Wrapped all dict.keys() in list().
There was no atomic access (e.g. using locks) to be skipped.
To aid development time and avoid excessive testing, converted some
calls which could have been skipped:
  - local scoped variables
  - variables with no changes after assignment
    (saved time identifying those)

Story: 2008454
Task: 42727
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I1a8b72e43ee5ceb7179e5bb0340d2be40450969f
(cherry picked from commit 1ae7c7b5c5)
2021-07-26 13:13:11 -04:00
..
__init__.py Cleanup tox alphabetical imports in nfv 2018-12-27 11:55:20 -06:00
_audits_module.py Cleanup tox alphabetical imports in nfv 2018-12-27 11:55:20 -06:00
_vim_alarm_audits.py py3: nfv wrap dict.values() in list() 2021-07-26 13:13:05 -04:00
_vim_nfvi_audits.py py3: nfv wrap dict.keys() in list() 2021-07-26 13:13:11 -04:00