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

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