fault/fm-doc
yhu6 f9ae82009b [fm-doc] bug-fix: change a "dictionary" while iterating it
issue: in ~/fm-doc/fm_doc/check_missing_alarms.py, there is
a for-loop iterating the dict "events", however inside this
loop, some elements are being popped out, and elements with
new keys are being added dynamically. This is not safe and
would bring unpredictable behavior with different versions
of Python and "Collections".

check_missing_alarms.py is triggered to run at Build stage
(defined in fm-doc.spec) when generating "fm-doc.*.tis.rpm".

Test for fix:
1. rebuild on "fm-doc.*.tis.rpm" by "# build-pkgs fm-doc"
2. check the rpm build log and assure the code be executed
correctly with expected check results.
3. run this script with different Python versions on other
Linux hosts and assure it works well.

Closes-Bug: 1809064

Change-Id: Ieb07ae944037c2eb33dda414e870702a9d248d83
Signed-off-by: yhu6 <yong.hu@intel.com>
2018-12-20 00:49:21 +00:00
..
centos StarlingX open source release updates 2018-05-31 07:36:00 -07:00
fm_doc [fm-doc] bug-fix: change a "dictionary" while iterating it 2018-12-20 00:49:21 +00:00
LICENSE StarlingX open source release updates 2018-05-31 07:36:00 -07:00