summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alpineversion-controller.lua2
-rw-r--r--alpineversion-model.lua4
2 files changed, 3 insertions, 3 deletions
diff --git a/alpineversion-controller.lua b/alpineversion-controller.lua
index a90c306..4d785ae 100644
--- a/alpineversion-controller.lua
+++ b/alpineversion-controller.lua
@@ -5,6 +5,6 @@ module (..., package.seeall)
default_action = "read"
read = function (self )
- return self.model:get()
+ return self.model.get()
end
diff --git a/alpineversion-model.lua b/alpineversion-model.lua
index 830cf59..67a348c 100644
--- a/alpineversion-model.lua
+++ b/alpineversion-model.lua
@@ -4,11 +4,11 @@ module (..., package.seeall)
-- no initializer in model - use controller.init for that
-get = function (self)
+get = function ()
require("fs")
local liboutput = fs.read_file("/etc/alpine-release")
if (liboutput == nil) or (liboutput == "") then
liboutput = "Unknown version"
end
- return liboutput
+ return cfe({ value=liboutput, label="Alpine version" })
end