From c8fe2fa8d8ca9392ab81b2ee9241df63b0738206 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 4 Nov 2010 22:00:14 +0000 Subject: [PATCH] minor fix --- plugins/generic/enumeration.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index 06807fcf1..116d2eb2f 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -1260,21 +1260,22 @@ class Enumeration: kb.data.cachedDbs = [] kb.data.cachedTables = self.getTables() - if isinstance(kb.data.cachedTables, list): - kb.data.cachedTables = { None : kb.data.cachedTables } + if kb.data.cachedTables: + if isinstance(kb.data.cachedTables, list): + kb.data.cachedTables = { None : kb.data.cachedTables } - for db, tables in kb.data.cachedTables.items(): - conf.db = db + for db, tables in kb.data.cachedTables.items(): + conf.db = db - for table in tables: - conf.tbl = table - kb.data.cachedColumns = {} - kb.data.dumpedTable = {} + for table in tables: + conf.tbl = table + kb.data.cachedColumns = {} + kb.data.dumpedTable = {} - data = self.dumpTable() + data = self.dumpTable() - if data: - conf.dumper.dbTableValues(data) + if data: + conf.dumper.dbTableValues(data) def dumpFoundColumn(self, dbs, foundCols, colConsider): if not dbs: