mix: Error out when mix and mix_pam are mixed

This commit is contained in:
PapaTutuWawa 2020-10-30 18:48:18 +01:00
parent d996bd34b9
commit 53e53efa44

View File

@ -1,6 +1,10 @@
local host = module:get_host();
local mm = require("core.modulemanger");
if module:get_host_type() ~= "component" then
error("MIX should be loaded as a component", 0);
error("mix should be loaded as a component", 0);
end
if mm.is_loaded(host, "mix_pam") then
error("mix and mix_pam shouldn't be loaded together on the same host");
end
local st = require("util.stanza");