From 1d3ed14edd8f5c1ba709440c1d72f2a8f2a8000d Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Wed, 26 Aug 2015 23:26:06 -0500 Subject: [PATCH] salt/grains/core.py: remove raw string formatting --- salt/grains/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/grains/core.py b/salt/grains/core.py index 5bb7bc65b7..fcdde1171f 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -187,7 +187,7 @@ def _linux_gpu_data(): cur_dev[key.strip()] = val.strip() else: error = True - log.debug('Unexpected lspci output: {0!r}'.format(line)) + log.debug('Unexpected lspci output: \'{0}\''.format(line)) if error: log.warn( @@ -788,7 +788,7 @@ def _virtual(osdata): for command in failed_commands: 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 ' 'accurate.'.format(command) )