Fixed pylint errors on jboss state and module

This commit is contained in:
justinta89 2016-03-14 10:34:51 -06:00
parent de96db97c8
commit 06ae6eaf55
2 changed files with 2 additions and 2 deletions

View file

@ -292,7 +292,7 @@ def __process_tokens_internal(tokens, start_at=0):
log.debug(" TYPE: ASSIGNMENT")
is_assignment = True
else:
raise CommandExecutionError('Unknown token!', 'Token:'+token)
raise CommandExecutionError('Unknown token! Token: {0}'.format(token))
token_no = token_no + 1

View file

@ -178,7 +178,7 @@ def datasource_exists(name, jboss_config, datasource_properties, recreate=False)
ret['result'] = False
ret['comment'] = 'Could not create datasource. Stdout: '+create_result['stdout']
else:
raise CommandExecutionError('Unable to handle error', ds_result['failure-description'])
raise CommandExecutionError('Unable to handle error: {0}'.format(ds_result['failure-description']))
if ret['result']:
log.debug("ds_new_properties=%s", str(ds_new_properties))