Skip to content
Snippets Groups Projects
Commit 46243ea3 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Remove trailing newline from MUNGE credential

parent 1c9f97b6
No related branches found
No related tags found
1 merge request!1021[Webservice] Use MUNGE credential with update_conf requests
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment