Skip to content
Snippets Groups Projects
Commit d68adab8 authored by Pavel Břoušek's avatar Pavel Břoušek
Browse files

chore: merge branch 'run_probes' into 'main'

fix: double space after probe name

See merge request perun-proxy-aai/python/perun-proxy-utils!38
parents 6ed25381 c2fc77dd
No related branches found
No related tags found
1 merge request!38fix: double space after probe name
Pipeline #306640 passed with warnings
...@@ -26,7 +26,7 @@ def run_probe(probe_name, command): ...@@ -26,7 +26,7 @@ def run_probe(probe_name, command):
output = re.sub("[ \t\n]+", " ", result.stdout) output = re.sub("[ \t\n]+", " ", result.stdout)
search = re.search(r" - .*", output) search = re.search(r" - .*", output)
if search: if search:
print(f"{result.returncode} {probe_name} {search.group()}") print(f"{result.returncode} {probe_name}{search.group()}")
else: else:
print(f"{result.returncode} {probe_name} - {output}") print(f"{result.returncode} {probe_name} - {output}")
return result.returncode return result.returncode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment