2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-23 10:02:04 +00:00

Fix validity of underscore in noderange

A group name may use underscore in name per xCAT syntax.  Fix
grammar to accept _
This commit is contained in:
Jarrod Johnson 2015-10-09 14:53:42 -04:00
parent 098c78558b
commit b1240e327f

View File

@ -25,7 +25,7 @@ import pyparsing as pp
import re
# construct custom grammar with pyparsing
_nodeword = pp.Word(pp.alphanums + '~^$/=-:.*+!')
_nodeword = pp.Word(pp.alphanums + '~^$/=-_:.*+!')
_nodebracket = pp.QuotedString(quoteChar='[', endQuoteChar=']',
unquoteResults=False)
_nodeatom = pp.Group(pp.OneOrMore(_nodeword | _nodebracket))