* luci/libs: uvl - cleanup round #3, flush lookup tables to prevent circular depency errors when reusing scheme instance
This commit is contained in:
parent
ef0be82b31
commit
f5046bbca7
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,7 @@ function UVL.validate( self, config )
|
|||
|
||||
self.uci.set_confdir( self.uci.confdir_default )
|
||||
self.uci.load( config )
|
||||
self.beenthere = { }
|
||||
|
||||
local co = self.uci.get_all( config )
|
||||
|
||||
|
@ -110,6 +111,7 @@ end
|
|||
function UVL.validate_section( self, config, section )
|
||||
self.uci.set_confdir( self.uci.confdir_default )
|
||||
self.uci.load( config )
|
||||
self.beenthere = { }
|
||||
|
||||
local co = self.uci.get_all( config )
|
||||
if co[section] then
|
||||
|
@ -125,6 +127,7 @@ end
|
|||
function UVL.validate_option( self, config, section, option )
|
||||
self.uci.set_confdir( self.uci.confdir_default )
|
||||
self.uci.load( config )
|
||||
self.beenthere = { }
|
||||
|
||||
local co = self.uci.get_all( config )
|
||||
if co[section] and co[section][option] then
|
||||
|
|
Loading…
Reference in a new issue