++more to fix
Signed-off-by: Nico Schottelius <nico@loch.schottelius.org>
This commit is contained in:
parent
7b5864dfce
commit
4ad2e4f742
1 changed files with 4 additions and 2 deletions
|
@ -33,6 +33,7 @@ import os
|
||||||
|
|
||||||
import cdist
|
import cdist
|
||||||
|
|
||||||
|
# FIXME: Logging with hostname
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
class TypeExplorer(object):
|
class TypeExplorer(object):
|
||||||
|
@ -56,7 +57,7 @@ class TypeExplorer(object):
|
||||||
cdist_type = cdist_object.type
|
cdist_type = cdist_object.type
|
||||||
|
|
||||||
cmd = []
|
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(
|
cmd.append("__type_explorer=" + os.path.join(
|
||||||
self.remote_type_path,
|
self.remote_type_path,
|
||||||
cdist_type.explorer_path))
|
cdist_type.explorer_path))
|
||||||
|
@ -75,7 +76,8 @@ class TypeExplorer(object):
|
||||||
cdist_object, explorer, remote_cmd, output)
|
cdist_object, explorer, remote_cmd, output)
|
||||||
|
|
||||||
# FIXME: change to new style
|
# 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
|
return outputs
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue