This website requires JavaScript.
Explore
Help
Register
Sign In
nils
/
gluon
Watch
1
Star
0
Fork
0
You've already forked gluon
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
052e08e771
gluon
/
package
/
gluon-config-mode-geo-location
/
check_site.lua
2 lines
79 B
Lua
Raw
Normal View
History
Unescape
Escape
treewide: rework check_site_lib.lua In addition to significant internal differences in check_site_lib.lua (in particular unifying error handling to a single place for the upcoming multi-domain support), this changes the way fields are addressed in site check scripts: rather than providing a string like 'next_node.ip6', the path is passed as an array {'next_node', 'ip6'}. Other changes in site check scripts: * need_array and need_table now pass the full path to the sub fields to the subcheck instead of the key and value * Any check referring to a field inside a table implies that all higher levels must be tables if they exist: a check for {'next_node', 'ip6'} adds an implicit (optional) check for {'next_node'}, which allows to remove many explicit checks for such tables
2018-01-19 09:12:43 +00:00
need_boolean
(
in_site
(
{
'
config_mode
'
,
'
geo_location
'
,
'
show_altitude
'
}
)
,
false
)
Reference in New Issue
Copy Permalink