* luci/libs: uvl - cleanup round #3, flush lookup tables to prevent circular depency...
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 16 Aug 2008 21:02:46 +0000 (21:02 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 16 Aug 2008 21:02:46 +0000 (21:02 +0000)
libs/uvl/luasrc/uvl.lua

index da5784e59900bda1864b203517917912b05a02bd..0e32dc1e239c7f9d137fa6d1e736f4d895ea9a53 100644 (file)
@@ -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