summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-06-22 16:14:32 +0300
committermakkalot <makkalot@gmail.com>2008-06-22 16:14:32 +0300
commit5d54662be9245bf654ab7e628ea286b6d87605b9 (patch)
treeb98db77a7f2a88f65576afb29206b8f0e553053e
parent2cf7e75d505b9db2724d6d063db3aaee5c799de7 (diff)
downloadfunc-5d54662be9245bf654ab7e628ea286b6d87605b9.tar.gz
func-5d54662be9245bf654ab7e628ea286b6d87605b9.tar.xz
func-5d54662be9245bf654ab7e628ea286b6d87605b9.zip
better validation in server side for services
-rw-r--r--func/minion/modules/service.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/func/minion/modules/service.py b/func/minion/modules/service.py
index 5052615..25acea3 100644
--- a/func/minion/modules/service.py
+++ b/func/minion/modules/service.py
@@ -95,8 +95,9 @@ class Service(func_module.FuncModule):
#service_name options they are same so use only one
service_name = {
'type':'string',
+ 'optional':False,
'description':'The name of the running services',
- 'validator':'^[a-z]+$'}
+ 'validator':'^[a-z\-\_0-9]+$'}
return {
'get_running':{'args':{}},