diff mod_persisthosts/mod_persisthosts.lua @ 6120:c90aab23fb9b

mod_persisthosts: Also skip defined Components (thanks gtech1) Thought Components also had `defined=true`, but apparently not.
author Kim Alvefur <zash@zash.se>
date Sat, 11 Jan 2025 12:12:18 +0100
parents dde2803f7678
children
line wrap: on
line diff
--- a/mod_persisthosts/mod_persisthosts.lua	Fri Jan 10 23:17:09 2025 +0100
+++ b/mod_persisthosts/mod_persisthosts.lua	Sat Jan 11 12:12:18 2025 +0100
@@ -11,7 +11,7 @@
 
 local original = set.new();
 for host, config in pairs(cm.getconfig()) do
-	if config["defined"] then
+	if config["defined"] or config["component_module"] then
 		original:add(host);
 	end
 end