From 90b62cf01fb0c1e56a735e788a12bba4453b052d Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Wed, 2 Oct 2024 15:39:34 +0200 Subject: [PATCH] fix(ssh_config): Fix formatting for unknown options --- handlers/ssh_config/handlers/formatting_nodes.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/handlers/ssh_config/handlers/formatting_nodes.go b/handlers/ssh_config/handlers/formatting_nodes.go index 9e9a2df..2ed5ca1 100644 --- a/handlers/ssh_config/handlers/formatting_nodes.go +++ b/handlers/ssh_config/handlers/formatting_nodes.go @@ -109,7 +109,11 @@ func formatSSHOption( var key string if option.Key != nil { - key = fields.FieldsNameFormattedMap[option.Key.Key] + if optionName, found := fields.FieldsNameFormattedMap[option.Key.Key]; found { + key = optionName + } else { + key = option.Key.Value.Raw + } } else { key = "" }