From 3e2eb92c1c931220cc43eccdb52889435d208ec4 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Thu, 18 Dec 2025 14:29:59 -0600 Subject: T8109: fix show command on leaf path Leaf node name/value was not included in output. --- src/config_diff.ml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/config_diff.ml') diff --git a/src/config_diff.ml b/src/config_diff.ml index b69440d..25c393f 100644 --- a/src/config_diff.ml +++ b/src/config_diff.ml @@ -699,7 +699,13 @@ let diff_show rt path left right = else let (left, right) = if not (Util.is_empty path) then - (Config_tree.get_subtree left path, Config_tree.get_subtree right path) + let with_node = + match Reference_tree.get_path_type rt path with + | `Leaf -> true + | _ -> false + in + (Config_tree.get_subtree ~with_node left path, + Config_tree.get_subtree ~with_node right path) else (left, right) in let config_show = make_diff_show left right path in -- cgit v1.2.3