From 8fb51a396a640066c99083df69521bd8b1a9148a Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Thu, 13 Oct 2011 13:34:06 +0200 Subject: [PATCH] implement list_type_explorer_names Signed-off-by: Steven Armstrong --- lib/cdist/core/explorer.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/cdist/core/explorer.py b/lib/cdist/core/explorer.py index 562683f4..7e61639e 100644 --- a/lib/cdist/core/explorer.py +++ b/lib/cdist/core/explorer.py @@ -92,6 +92,11 @@ class Explorer(object): ### type + def list_type_explorer_names(self, cdist_type): + """Return a list of explorer names for the given type.""" + source = os.path.join(self.local.type_path, cdist_type.explorer_path) + return os.listdir(source) + def transfer_type_explorers(self, cdist_type): """Transfer the type explorers for the given type to the remote side.""" source = os.path.join(self.local.type_path, cdist_type.explorer_path)