Blame SOURCES/bz1769783-fencing-improve-stdin-quote-parsing.patch

6147c0
From 82626dbdb12519e95a5df70ae6ae21bc17112f43 Mon Sep 17 00:00:00 2001
6147c0
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
6147c0
Date: Wed, 13 Feb 2019 13:28:25 +0100
6147c0
Subject: [PATCH] fencing: improve stdin parse function
6147c0
6147c0
- Remove quotes around stdin parameters for consistency with CLI
6147c0
parameters and to be able to quote number and time parameters
6147c0
---
6147c0
 lib/fencing.py.py | 1 +
6147c0
 1 file changed, 1 insertion(+)
6147c0
6147c0
diff --git a/lib/fencing.py.py b/lib/fencing.py.py
6147c0
index 287cd01f..8cd0a813 100644
6147c0
--- a/lib/fencing.py.py
6147c0
+++ b/lib/fencing.py.py
6147c0
@@ -1389,6 +1389,7 @@ def _parse_input_stdin(avail_opt):
6147c0
 
6147c0
 		(name, value) = (line + "=").split("=", 1)
6147c0
 		value = value[:-1]
6147c0
+		value = re.sub("^\"(.*)\"$", "\\1", value)
6147c0
 
6147c0
 		if name.replace("-", "_") in mapping_longopt_names:
6147c0
 			name = mapping_longopt_names[name.replace("-", "_")]