Pylint fix

This commit is contained in:
Kaithar 2015-05-05 15:40:30 +01:00
parent 8d9acd1f89
commit 577f41972e

View file

@ -40,7 +40,7 @@ def _add_var(var, value):
fullvar = '{0}="{1}"'.format(var, value)
if __salt__['file.contains'](makeconf, layman):
# TODO perhaps make this a function in the file module?
cmd = ['sed', '-i', '/{0}/ i\{1}'.format(
cmd = ['sed', '-i', r'/{0}/ i\{1}'.format(
layman.replace('/', '\\/'),
fullvar),
makeconf]