Browse Source

gluon-core: use new gluon.site library to avoid 'or {}' syntax

Matthias Schiffer 6 years ago
parent
commit
1d6e6726d7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      package/gluon-core/luasrc/lib/gluon/upgrade/820-dns-config

+ 3 - 3
package/gluon-core/luasrc/lib/gluon/upgrade/820-dns-config

@@ -1,10 +1,10 @@
 #!/usr/bin/lua
 
-local site = require 'gluon.site_config'
+local site = require 'gluon.site'
 local uci = require('simple-uci').cursor()
 
-local dns = site.dns or {}
-local next_node = site.next_node or {}
+local dns = site.dns({})
+local next_node = site.next_node({})
 
 local dnsmasq = uci:get_first("dhcp", "dnsmasq")