You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2017/10/20 12:24:43 UTC

[kibble-scanners] branch master updated: return plugins in correct run-order

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git


The following commit(s) were added to refs/heads/master by this push:
     new 255664c  return plugins in correct run-order
255664c is described below

commit 255664cd9dfa160a3a56b47ef35894658a516c1a
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Fri Oct 20 14:24:32 2017 +0200

    return plugins in correct run-order
    
    we need sync to happen first, then the rest..
---
 src/plugins/scanners/__init__.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/plugins/scanners/__init__.py b/src/plugins/scanners/__init__.py
index 4b410cf..7a6bc94 100644
--- a/src/plugins/scanners/__init__.py
+++ b/src/plugins/scanners/__init__.py
@@ -46,5 +46,7 @@ for p in __all__:
     print("[core]: Loaded plugins/scanners/%s v/%s (%s)" % (p, scanner.version, scanner.title))
 
 def enumerate():
-    """ Returns the scanners as a dictionary """
-    return scanners.items()
+    """ Returns the scanners as a dictionary, sorted by run-order """
+    for p in __all__:
+        yield (p, scanners[p])
+

-- 
To stop receiving notification emails like this one, please contact
['"commits@kibble.apache.org" <co...@kibble.apache.org>'].