[stx-fault] [fm-doc] dynamically changing elements in dict while iterating this dict
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
yong hu |
Bug Description
in ~/stx-fault/
for alarm_id in events:
if isinstance(
Maybe this code is not broken with certain version of Python and related libraries ("Collections"), but the error would occur with another version.
In principle this operation is not safe and could bring potential issues.
BTW: this script is triggered to run when StarlingX build system is making fm-doc-tis.rpm, rather than running on deployed StarlingX system.
Changed in starlingx: | |
assignee: | nobody → yong hu (yhu6) |
summary: |
- [fm-doc] change element in dict while iterating this dict + [stx-fault] [fm-doc] dynamically changing elements in dict while + iterating this dict |
tags: |
added: stx.2.0 removed: stx.2019.05 |
Fix proposed to branch: master /review. openstack. org/626072
Review: https:/