mod_munin: Fix syntax error
authorKim Alvefur <zash@zash.se>
Wed, 07 Oct 2015 20:42:09 +0200
changeset 1902 d85ddd3e588a
parent 1901 effd909d05b0
child 1903 ceb594a14a18
mod_munin: Fix syntax error
mod_munin/mod_munin.lua
--- a/mod_munin/mod_munin.lua	Wed Oct 07 20:41:20 2015 +0200
+++ b/mod_munin/mod_munin.lua	Wed Oct 07 20:42:09 2015 +0200
@@ -93,9 +93,9 @@
 			elseif host == "*" then
 				host = nil;
 			end
-			if sect:find"^mod_measure_.") then
+			if sect:find("^mod_measure_.") then
 				sect = sect:sub(13);
-			elseif sect:find"^mod_statistics_.") then
+			elseif sect:find("^mod_statistics_.") then
 				sect = sect:sub(16);
 			end
 			key = clean_fieldname(s_format("%s_%s_%s", host or "global", sect, typ));