summaryrefslogtreecommitdiffstats
path: root/chrony-model.lua
diff options
context:
space:
mode:
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 ec0301d..fa8e013 100644
--- a/chrony-model.lua
+++ b/chrony-model.lua
@@ -132,7 +132,7 @@ function get_config()
output.keyfile = cfe({ label="Key File", descr="Name of key file (ie. /etc/chrony/chrony.keys)" })
output.commandkey = cfe({ label="Command Key", descr="Number of key in Key File for commands." })
- local config = format.parse_linesandwords(fs.read_file(configfile), "[!;#%%]")
+ local config = format.parse_linesandwords(fs.read_file(configfile) or "", "[!;#%%]")
if config then
for i,entry in ipairs(config) do
if output[entry[1]] then