From 4ad2e4f7422974d03c15cb2f5fa53cb4a2a64d49 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 12 Oct 2011 23:10:05 +0200 Subject: [PATCH] ++more to fix Signed-off-by: Nico Schottelius --- lib/cdist/type_explorer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/cdist/type_explorer.py b/lib/cdist/type_explorer.py index 90c726c3..9e3c99bf 100644 --- a/lib/cdist/type_explorer.py +++ b/lib/cdist/type_explorer.py @@ -33,6 +33,7 @@ import os import cdist +# FIXME: Logging with hostname log = logging.getLogger(__name__) class TypeExplorer(object): @@ -56,7 +57,7 @@ class TypeExplorer(object): cdist_type = cdist_object.type cmd = [] - cmd.append("__explorer=" + self.context.remote_global_explorer_path) + cmd.append("__explorer=" + self.remote_global_explorer_path) cmd.append("__type_explorer=" + os.path.join( self.remote_type_path, cdist_type.explorer_path)) @@ -75,7 +76,8 @@ class TypeExplorer(object): cdist_object, explorer, remote_cmd, output) # FIXME: change to new style - cdist.exec.run_or_fail(remote_cmd, stdout=outputs[explorer], remote_prefix=True) + cdist.exec.run_or_fail(remote_cmd, stdout=outputs[explorer], + remote_prefix=True) return outputs