104 return nil, "insufficient-parameters"; |
104 return nil, "insufficient-parameters"; |
105 end |
105 end |
106 |
106 |
107 if not modulemap[host] then |
107 if not modulemap[host] then |
108 modulemap[host] = {}; |
108 modulemap[host] = {}; |
|
109 hosts[host].modules = modulemap[host]; |
109 end |
110 end |
110 |
111 |
111 if modulemap[host][module_name] then |
112 if modulemap[host][module_name] then |
112 log("warn", "%s is already loaded for %s, so not loading again", module_name, host); |
113 log("warn", "%s is already loaded for %s, so not loading again", module_name, host); |
113 return nil, "module-already-loaded"; |
114 return nil, "module-already-loaded"; |