From 46243ea3718dafb98d765a2e040213ab86710964 Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas.kluyver@xfel.eu>
Date: Wed, 12 Jun 2024 17:08:22 +0100
Subject: [PATCH] Remove trailing newline from MUNGE credential

---
 webservice/update_config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webservice/update_config.py b/webservice/update_config.py
index 8933956c7..2bc4952fd 100755
--- a/webservice/update_config.py
+++ b/webservice/update_config.py
@@ -268,7 +268,7 @@ def munge():
     """Make a MUNGE credential to send"""
     res = subprocess.run(['munge', '-n'], stdout=subprocess.PIPE, text=True)
     if res.returncode == 0:
-        return res.stdout
+        return res.stdout.strip()
     return None  # Something went wrong - for now, this is ignored
 
 
-- 
GitLab