salt/grains/core.py: remove raw string formatting

This commit is contained in:
Erik Johnson 2015-08-26 23:26:06 -05:00
parent de97332105
commit 1d3ed14edd

View File

@ -187,7 +187,7 @@ def _linux_gpu_data():
cur_dev[key.strip()] = val.strip() cur_dev[key.strip()] = val.strip()
else: else:
error = True error = True
log.debug('Unexpected lspci output: {0!r}'.format(line)) log.debug('Unexpected lspci output: \'{0}\''.format(line))
if error: if error:
log.warn( log.warn(
@ -788,7 +788,7 @@ def _virtual(osdata):
for command in failed_commands: for command in failed_commands:
log.warn( log.warn(
'Although {0!r} was found in path, the current user ' 'Although \'{0}\' was found in path, the current user '
'cannot execute it. Grains output might not be ' 'cannot execute it. Grains output might not be '
'accurate.'.format(command) 'accurate.'.format(command)
) )