Don't use _formatfor().

This commit is contained in:
ajacoutot 2014-09-12 07:16:05 +00:00
parent fc5ae86ccf
commit 3feb04ac0f
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.42 2014/09/11 06:28:41 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.43 2014/09/12 07:16:05 ajacoutot Exp $
# optional dependencies
# https://github.com/saltstack/salt/blob/develop/doc/conf.py#L42
@ -18,7 +18,7 @@ COMMENT = remote execution and configuration management system
MODPY_EGG_VERSION = 2014.1.11
DISTNAME = salt-${MODPY_EGG_VERSION}
REVISION = 1
REVISION = 2
CATEGORIES = sysutils net devel

View File

@ -115,7 +115,7 @@ def persist(name, value, config='/etc/sysctl.conf'):
rest = rest[len(rest_v):]
if rest_v == value:
return 'Already set'
new_line = _formatfor(key, value, config, rest)
new_line = '{0}={1}{2}'.format(key, value, rest)
nlines.append(new_line)
edited = True
if not edited: