From fa17f273a1fed485afafa7492e84fa978a05bf31 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 20 Nov 2015 23:14:58 +0000 Subject: Replace convertsize function with orig_size Also changes listtemplates to return all details and fixes HTML view bug when template file is missing --- provisioning-model.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'provisioning-model.lua') diff --git a/provisioning-model.lua b/provisioning-model.lua index 560bc42..0468a57 100644 --- a/provisioning-model.lua +++ b/provisioning-model.lua @@ -537,8 +537,9 @@ mymodule.list_templates = function() reversed[file] = #retval end local t = retval[reversed[file]] - t.filesize = details.size - t.mtime = details.mtime + for n,v in pairs(details) do + t[n] = v + end end end -- cgit v1.2.3