From e8a0373fe2f6cfefe9036571a17ab13d8dbe4d80 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Jan 10 2018 10:21:25 +0000 Subject: Sort external schema files get_all_external_schema_files() now returns schema files sorted. Fixes: https://pagure.io/freeipa/issue/7338 Signed-off-by: Christian Heimes Reviewed-By: Alexander Bokovoy --- diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py index 923f483..b195b8d 100644 --- a/ipaserver/install/dsinstance.py +++ b/ipaserver/install/dsinstance.py @@ -183,7 +183,7 @@ def get_all_external_schema_files(root): for name in files: if fnmatch.fnmatch(name, "*.ldif"): f.append(os.path.join(path, name)) - return f + return sorted(f) INF_TEMPLATE = """