commit | 37f833d07de5d2301a0b98f0344320e823edc899 | [log] [tgz] |
---|---|---|
author | Michael Walsh <micwalsh@us.ibm.com> | Mon Mar 04 17:09:12 2019 -0600 |
committer | George Keishing <gkeishin@in.ibm.com> | Tue Mar 05 08:22:13 2019 +0000 |
tree | 3ec6a35bef463d12c2354b9f4d988ed98576eb74 | |
parent | 35139f97bd84d7b6e8bdb14818d1d653f4806cbf [diff] |
boot/data.py:create_boot_table fix OrderedDict mutated during iteration Fixes https://github.com/openbmc/openbmc-test-automation/issues/1645 Change-Id: Ia81a5761de64c624238a5b6468d2364b955aa23c Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/boot_data.py b/lib/boot_data.py index 070a0e6..abb41b7 100755 --- a/lib/boot_data.py +++ b/lib/boot_data.py
@@ -68,7 +68,7 @@ for boot in boot_table: state_keys = ['start', 'end'] for state_key in state_keys: - for sub_state in boot_table[boot][state_key]: + for sub_state in list(boot_table[boot][state_key]): if sub_state.startswith("os_"): boot_table[boot][state_key].pop(sub_state, None)