handle jboss cli expression type in the parsing of the output

This commit is contained in:
Jacob Weinstock 2016-07-08 12:08:36 -06:00
parent 7e1abd77ba
commit 1945153399

View file

@ -298,6 +298,9 @@ def __process_tokens_internal(tokens, start_at=0):
elif __is_assignment(token):
log.debug(" TYPE: ASSIGNMENT")
is_assignment = True
elif __is_expression(token):
log.debug(" TYPE: EXPRESSION")
is_expression = True
else:
raise CommandExecutionError('Unknown token! Token: {0}'.format(token))
@ -372,3 +375,7 @@ def __get_quoted_string(token):
def __is_assignment(token):
return token == '=>'
def __is_expression(token):
return token == 'expression'