mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
salt/grains/core.py: remove raw string formatting
This commit is contained in:
parent
de97332105
commit
1d3ed14edd
@ -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)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user