diff options
author | Taylor Jakobson <tjakobs@us.ibm.com> | 2018-05-08 12:32:15 -0500 |
---|---|---|
committer | Taylor Jakobson <tjakobs@us.ibm.com> | 2018-05-08 15:36:00 -0500 |
commit | 421987651374de609cf0e8ccff6df1f2758e1bcd (patch) | |
tree | 9b83615f720dc2a837fa6aa478578444b9e07ddf | |
parent | 4b494b6eb25fea71a7c536f8b6e16b3b6e0b83a4 (diff) | |
download | configshell-fb-421987651374de609cf0e8ccff6df1f2758e1bcd.tar.gz |
Fix failing to parse param like pool/rbd;id=user
Fixes trying to create an lio ceph device with the optional args:
/backstores/user:rbd/ create name 1M pool/device;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*') |