From b1240e327f83cf9565fe00d77c05b12c79009d20 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 9 Oct 2015 14:53:42 -0400 Subject: [PATCH] Fix validity of underscore in noderange A group name may use underscore in name per xCAT syntax. Fix grammar to accept _ --- confluent_server/confluent/noderange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/noderange.py b/confluent_server/confluent/noderange.py index c533cfd4..c61ee5d7 100644 --- a/confluent_server/confluent/noderange.py +++ b/confluent_server/confluent/noderange.py @@ -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))