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