[PATCH] in service modules, I removed trail spaces in service name.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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


--=-65WNMzqcwnFX8Z2QcHr/--

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux