File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1092,9 +1092,7 @@ def write_stray_key_map(self):
1092
1092
if not secondary_count :
1093
1093
fieldnames .append ('umapi' )
1094
1094
secondary_count += 1
1095
- # None sorts before strings, so sorting the keys in the map
1096
- # puts the primary umapi first in the output, which is handy
1097
- for umapi_name in sorted (self .stray_key_map .keys ()):
1095
+ for umapi_name in self .stray_key_map :
1098
1096
for user_key in self .get_stray_keys (umapi_name ):
1099
1097
id_type , username , domain = self .parse_user_key (user_key )
1100
1098
umapi = umapi_name if umapi_name else ""
@@ -1103,6 +1101,7 @@ def write_stray_key_map(self):
1103
1101
else :
1104
1102
row_dict = {'type' : id_type , 'username' : username , 'domain' : domain }
1105
1103
rows .append (row_dict )
1104
+
1106
1105
CSVAdapter .write_csv_rows (file_path , fieldnames , rows )
1107
1106
user_count = len (self .stray_key_map .get (PRIMARY_UMAPI_NAME , []))
1108
1107
user_plural = "" if user_count == 1 else "s"
You can’t perform that action at this time.
0 commit comments