Changing issue candidates in baseline to ordered dict

This commit changes the issue candidates results that are passed
to baseline formatters to an ordered dict.  This is done to
preserve the order.  Otherwise the issue order might be jumbled.

Change-Id: I6183d70ef8c5660669ec4f965fffff88f84d7f24
This commit is contained in:
Travis McPeak
2015-11-11 18:33:00 +01:00
parent 6b19466d9c
commit 5fe2f01e5b

View File

@@ -14,6 +14,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from collections import OrderedDict
import fnmatch
import json
import logging
@@ -409,7 +410,7 @@ def _find_candidate_matches(unmatched_issues, results_list):
:return: A dictionary with a list of candidates for each issue
"""
issue_candidates = {}
issue_candidates = OrderedDict()
for unmatched in unmatched_issues:
issue_candidates[unmatched] = ([i for i in results_list if