summaryrefslogtreecommitdiffstats
path: root/chrony-model.lua
diff options
context:
space:
mode:
authorttrask <ttrask@ab2d0c66-481e-0410-8bed-d214d4d58bed>2009-03-13 12:34:00 +0000
committerttrask <ttrask@ab2d0c66-481e-0410-8bed-d214d4d58bed>2009-03-13 12:34:00 +0000
commit5545ccd381846ae866b67130780d96b30c95656e (patch)
tree36779381c4697a79915e1cd3bcbf3c749878aa6e /chrony-model.lua
parent0f362beaec8173d546fc70d10688843f1ceb4ae6 (diff)
downloadacf-chrony-5545ccd381846ae866b67130780d96b30c95656e.tar.bz2
acf-chrony-5545ccd381846ae866b67130780d96b30c95656e.tar.xz
Fixed chrony validation to allow empty command key, modified status view.
git-svn-id: svn://svn.alpinelinux.org/acf/chrony/trunk@1728 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'chrony-model.lua')
-rw-r--r--chrony-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrony-model.lua b/chrony-model.lua
index 3af9bd9..c1001ed 100644
--- a/chrony-model.lua
+++ b/chrony-model.lua
@@ -41,7 +41,7 @@ function validate_config(config)
config.value.keyfile.errtxt = "Invalid file name"
success = false
end
- if not validator.is_integer(config.value.commandkey.value) then
+ if config.value.commandkey.value ~= "" and not validator.is_integer(config.value.commandkey.value) then
config.value.commandkey.errtxt = "Must be an integer"
success = false
end