]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task.ansible.FailureAnalyzer: Sort failure items afa-sort 1876/head
authorZack Cerza <zack@redhat.com>
Fri, 28 Jul 2023 19:22:52 +0000 (13:22 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 28 Jul 2023 19:22:52 +0000 (13:22 -0600)
To reduce unecessary duplication in e.g. Sentry.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/ansible.py

index ea0f9c594c363c9c36533e489add5c22111f9887..a65a983f6d644a21a9e1baa6cc726e7f5e217a89 100644 (file)
@@ -47,7 +47,7 @@ class FailureAnalyzer:
             if not isinstance(host_obj, dict):
                 continue
             lines = lines.union(self.analyze_host_record(host_obj))
-        return lines
+        return sorted(lines)
 
     def analyze_host_record(self, record):
         lines = set()