diff options
author | Andy Grover <andy@groveronline.com> | 2018-05-08 17:39:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-08 17:39:50 -0700 |
commit | cea94e26b12c5818fc802f6e7f5187bdfe7d5566 (patch) | |
tree | 9b83615f720dc2a837fa6aa478578444b9e07ddf | |
parent | 4b494b6eb25fea71a7c536f8b6e16b3b6e0b83a4 (diff) | |
parent | 421987651374de609cf0e8ccff6df1f2758e1bcd (diff) | |
download | configshell-fb-cea94e26b12c5818fc802f6e7f5187bdfe7d5566.tar.gz |
Merge pull request #44 from tjakob/semicolon
Fix failing to parse param like pool/rbd;id=user
-rw-r--r-- | configshell/shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configshell/shell.py b/configshell/shell.py index 3400f6d..bb4dd32 100644 --- a/configshell/shell.py +++ b/configshell/shell.py @@ -118,7 +118,7 @@ class ConfigShell(object): # Grammar of the command line command = locatedExpr(Word(alphanums + '_'))('command') - var = Word(alphanums + ',=_\+/.<>()~@:-%[]') + var = Word(alphanums + ';,=_\+/.<>()~@:-%[]') value = var keyword = Word(alphanums + '_\-') kparam = locatedExpr(keyword + Suppress('=') + Optional(value, default=''))('kparams*') |