Blame SOURCES/bz1780825-fencing-2-metadata-fix-long-parameters.patch

2107d2
From 199b5e8a63d8b3457262751b7fbe187f92b38e73 Mon Sep 17 00:00:00 2001
2107d2
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
2107d2
Date: Tue, 4 May 2021 09:33:34 +0200
2107d2
Subject: [PATCH] fencing: fix issue with hardcoded help text length for
2107d2
 metadata
2107d2
2107d2
---
2107d2
 lib/fencing.py.py                             | 2 +-
2107d2
 77 files changed, 153 insertions(+), 153 deletions(-)
2107d2
2107d2
diff --git a/lib/fencing.py.py b/lib/fencing.py.py
2107d2
index bd7f529f7..b0ddde850 100644
2107d2
--- a/lib/fencing.py.py
2107d2
+++ b/lib/fencing.py.py
2107d2
@@ -641,7 +641,7 @@ def metadata(options, avail_opt, docs):
2107d2
 			mixed = _encode_html_entities(mixed)
2107d2
 
2107d2
 			if not "shortdesc" in opt:
2107d2
-				shortdesc = re.sub("\s\s+", " ", opt["help"][31:])
2107d2
+				shortdesc = re.sub(".*\s\s+", "", opt["help"][31:])
2107d2
 			else:
2107d2
 				shortdesc = opt["shortdesc"]