summaryrefslogtreecommitdiffstats
path: root/shorewall-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'shorewall-model.lua')
-rw-r--r--shorewall-model.lua9
1 files changed, 1 insertions, 8 deletions
diff --git a/shorewall-model.lua b/shorewall-model.lua
index 1d78ebb..3669fc0 100644
--- a/shorewall-model.lua
+++ b/shorewall-model.lua
@@ -171,14 +171,7 @@ end
-- PUBLIC FUNCTIONS
function getstatus()
- local status = modelfunctions.getstatus(processname, packagename, "Shorewall Status")
- local details = getstatusdetails()
- if string.match(details.value, "Shorewall is running") then
- status.value.status.value = "Running"
- else
- status.value.status.value = "Stopped"
- end
- return status
+ return modelfunctions.getstatus(processname, packagename, "Shorewall Status")
end
function getstatusdetails()