Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle jboss cli expression type in the parsing of output #34557

Merged
merged 1 commit into from
Jul 14, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions salt/modules/jboss7_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down Expand Up @@ -372,3 +375,7 @@ def __get_quoted_string(token):

def __is_assignment(token):
return token == '=>'


def __is_expression(token):
return token == 'expression'