From f574760c1215a0c80f949b88d9570bf8c248791e Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 28 Oct 2011 13:16:22 +0000 Subject: [PATCH] minor update --- plugins/dbms/maxdb/enumeration.py | 3 +++ plugins/dbms/sybase/enumeration.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/plugins/dbms/maxdb/enumeration.py b/plugins/dbms/maxdb/enumeration.py index b88007392..9b735f019 100644 --- a/plugins/dbms/maxdb/enumeration.py +++ b/plugins/dbms/maxdb/enumeration.py @@ -48,6 +48,9 @@ class Enumeration(GenericEnumeration): if retVal: kb.data.cachedDbs = retVal[0].values()[0] + if kb.data.cachedDbs: + kb.data.cachedDbs.sort() + return kb.data.cachedDbs def getTables(self, bruteForce=None): diff --git a/plugins/dbms/sybase/enumeration.py b/plugins/dbms/sybase/enumeration.py index f9cc21871..fd15a72b7 100644 --- a/plugins/dbms/sybase/enumeration.py +++ b/plugins/dbms/sybase/enumeration.py @@ -102,6 +102,9 @@ class Enumeration(GenericEnumeration): kb.data.cachedDbs = retVal[0].values()[0] break + if kb.data.cachedDbs: + kb.data.cachedDbs.sort() + return kb.data.cachedDbs def getTables(self, bruteForce=None):