summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2011-07-22 09:13:11 -0500
committerSol Jerome <sol.jerome@gmail.com>2011-07-22 09:13:11 -0500
commit063aa802aa50d2a1d9ab7c4c5bb0454db9dc41ed (patch)
tree78f0dd5eead0ec53ddcbc608631f5095c9789725 /src
parent52f9abbc8171a441a3f85108cc51a1143531c92c (diff)
downloadbcfg2-063aa802aa50d2a1d9ab7c4c5bb0454db9dc41ed.tar.gz
bcfg2-063aa802aa50d2a1d9ab7c4c5bb0454db9dc41ed.tar.bz2
bcfg2-063aa802aa50d2a1d9ab7c4c5bb0454db9dc41ed.zip
Chkconfig: Use LANG=C to avoid locale conflicts (Resolves #1028 and #926)
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Tools/Chkconfig.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/Chkconfig.py b/src/lib/Client/Tools/Chkconfig.py
index 7bf176f2c..12d1a3444 100644
--- a/src/lib/Client/Tools/Chkconfig.py
+++ b/src/lib/Client/Tools/Chkconfig.py
@@ -4,6 +4,8 @@
"""This is chkconfig support."""
__revision__ = '$Revision$'
+import os
+
import Bcfg2.Client.Tools
import Bcfg2.Client.XML
@@ -14,6 +16,7 @@ class Chkconfig(Bcfg2.Client.Tools.SvcTool):
__execs__ = ['/sbin/chkconfig']
__handles__ = [('Service', 'chkconfig')]
__req__ = {'Service': ['name', 'status']}
+ os.environ['LANG'] = 'C'
def get_svc_command(self, service, action):
return "/sbin/service %s %s" % (service.get('name'), action)