mix: Error out when mix and mix_pam are mixed
This commit is contained in:
parent
d996bd34b9
commit
53e53efa44
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user