On Fri, 2008-05-16 at 11:46 -0400, Michael DeHaan wrote:
> Sorry, the version of mailman we are running likes to eat patches for
> breakfast and this came across as zero-length.
LOL :)
No problem :)
*****START*****
>From cf34e5ee8a3557a96876ad6ed18b48b40b7c244c Mon Sep 17 00:00:00 2001
From: Luca Foppiano <[EMAIL PROTECTED]>
Date: Fri, 16 May 2008 15:19:10 +0200
Subject: [PATCH] in service modules, I removed trail spaces in service
name.
---
func/minion/modules/service.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/func/minion/modules/service.py
b/func/minion/modules/service.py
index 062aea5..86217bf 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):
--
1.5.4.1
*****END*****
--
Today is Sweetmorn, the 63rd day of Discord in the YOLD 3174
Mount St. Helens should have used earth control.
_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list