From 4cf4083fb47bc00cee7c9b7a03201b2db71e8599 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Thu, 26 Jun 2008 12:06:00 -0400 Subject: strip any white space passed into services name patch from Luca Foppiano --- func/minion/modules/service.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'func') diff --git a/func/minion/modules/service.py b/func/minion/modules/service.py index 25acea3..7f3d381 100644 --- a/func/minion/modules/service.py +++ b/func/minion/modules/service.py @@ -25,6 +25,8 @@ class Service(func_module.FuncModule): description = "Allows for service control via func." def __command(self, service_name, command): + + service_name = service_name.strip() # remove useless spaces filename = os.path.join("/etc/rc.d/init.d/",service_name) if os.path.exists(filename): -- cgit