equal
deleted
inserted
replaced
7 local node = module:get_option(module.name .. "_node") or "serverinfo"; |
7 local node = module:get_option(module.name .. "_node") or "serverinfo"; |
8 local actor = module.host .. "/modules/" .. module.name; |
8 local actor = module.host .. "/modules/" .. module.name; |
9 local publication_interval = module:get_option(module.name .. "_publication_interval") or 300; |
9 local publication_interval = module:get_option(module.name .. "_publication_interval") or 300; |
10 local cache_ttl = module:get_option(module.name .. "_cache_ttl") or 3600; |
10 local cache_ttl = module:get_option(module.name .. "_cache_ttl") or 3600; |
11 |
11 |
12 local opt_in_reports |
|
13 |
12 |
14 function module.load() |
13 function module.load() |
15 discover_node():next( |
14 discover_node():next( |
16 function(exists) |
15 function(exists) |
17 if not exists then create_node() end |
16 if not exists then create_node() end |