From 959d9a589894f3ab20758485be165314ae6bcc40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vedran=20Vidovi=C4=87?= Date: Tue, 22 Mar 2022 15:44:47 +0100 Subject: [PATCH] Workaround to edit the SSHService Removing the space from the name of the SSHService to enable editing it throught SOMA interface. --- repo/dp/dp.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/repo/dp/dp.go b/repo/dp/dp.go index 08ff697..bfd4ab2 100644 --- a/repo/dp/dp.go +++ b/repo/dp/dp.go @@ -3387,6 +3387,11 @@ func cleanXML(inputXML string) (string, error) { re = regexp.MustCompile(` read-only="[a-z]+"`) outputXML = re.ReplaceAllString(outputXML, "") + // Remove space from the name attribute from the SSH Service - otherwise update fails. + // + re = regexp.MustCompile(`)(.*?)`)