From b814e7db7bd00f52caadb90ef5980120398dfa5f Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 18 Dec 2025 15:04:01 +0100 Subject: [PATCH] dnsdist: Ensure selectors and actions are properly ordered in the documentation Signed-off-by: Remi Gacogne --- pdns/dnsdistdist/dnsdist-settings-documentation-generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdistdist/dnsdist-settings-documentation-generator.py b/pdns/dnsdistdist/dnsdist-settings-documentation-generator.py index 983b40c2b5..5681b40378 100644 --- a/pdns/dnsdistdist/dnsdist-settings-documentation-generator.py +++ b/pdns/dnsdistdist/dnsdist-settings-documentation-generator.py @@ -191,7 +191,7 @@ def process_selectors_or_actions(def_file, entry_type): entries = get_definitions_from_file(def_file) suffix = object_name - for entry in entries: + for entry in sorted(entries, key=lambda d: d['name']): object_name = get_rust_object_name(entry['name']) lua_equivalent = object_name + ('Rule' if entry_type == 'selector' else suffix) if 'no-lua-equivalent' in entry: -- 2.47.3