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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user