diff options
author | makkalot <makkalot@gmail.com> | 2008-06-22 16:14:32 +0300 |
---|---|---|
committer | makkalot <makkalot@gmail.com> | 2008-06-22 16:14:32 +0300 |
commit | 5d54662be9245bf654ab7e628ea286b6d87605b9 (patch) | |
tree | b98db77a7f2a88f65576afb29206b8f0e553053e | |
parent | 2cf7e75d505b9db2724d6d063db3aaee5c799de7 (diff) | |
download | func-5d54662be9245bf654ab7e628ea286b6d87605b9.tar.gz func-5d54662be9245bf654ab7e628ea286b6d87605b9.tar.xz func-5d54662be9245bf654ab7e628ea286b6d87605b9.zip |
better validation in server side for services
-rw-r--r-- | func/minion/modules/service.py | 3 |
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':{}}, |