]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
modules/graphite: ignore when config is empty
authorMarek Vavruša <marek.vavrusa@nic.cz>
Thu, 15 Oct 2015 11:56:55 +0000 (13:56 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Thu, 15 Oct 2015 11:56:55 +0000 (13:56 +0200)
modules/graphite/graphite.lua

index 97c337aa06e3901ef4967469a10d678be66fdf2c..f63c4bf389b339af17b3649773388ef86c11342d 100644 (file)
@@ -60,6 +60,7 @@ end
 
 function graphite.config(conf)
        -- config defaults
+       if not conf then return 0 end
        if not conf.port then conf.port = 2003 end
        if not conf.interval then conf.interval = 5 * sec end
        if conf.prefix then graphite.prefix = conf.prefix end