Blame SOURCES/0003-Fix-failing-to-pasre-par-val-parameters.patch

e66971
From 8970d90888657ae352a6a48ba1e63f746005a163 Mon Sep 17 00:00:00 2001
e66971
From: Xiubo Li <lixiubo@cmss.chinamobile.com>
e66971
Date: Wed, 6 Sep 2017 17:31:26 +0800
e66971
Subject: [PATCH] Fix failing to pasre par=val parameters
e66971
e66971
Through targetcli-fb to create LIO ceph target device like:
e66971
/backstores/user:rbd> create block0 10G pool/rbd1/osd_op_timeout=30
e66971
the =30 will be ignored.
e66971
e66971
Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
e66971
---
e66971
 configshell/shell.py | 2 +-
e66971
 1 file changed, 1 insertion(+), 1 deletion(-)
e66971
e66971
diff --git a/configshell/shell.py b/configshell/shell.py
e66971
index 3d0fce9..382d67b 100644
e66971
--- a/configshell/shell.py
e66971
+++ b/configshell/shell.py
e66971
@@ -118,7 +118,7 @@ class ConfigShell(object):
e66971
 
e66971
         # Grammar of the command line
e66971
         command = locatedExpr(Word(alphanums + '_'))('command')
e66971
-        var = Word(alphanums + '_\+/.<>()~@:-%[]')
e66971
+        var = Word(alphanums + '=_\+/.<>()~@:-%[]')
e66971
         value = var
e66971
         keyword = Word(alphanums + '_\-')
e66971
         kparam = locatedExpr(keyword + Suppress('=') + Optional(value, default=''))('kparams*')
e66971
-- 
e66971
1.8.3.1
e66971