From 18dd0ebd337a550429954cac7646b5a7b2cdea74 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 15 Nov 2012 17:37:15 +0100 Subject: [PATCH] ensure global and type explorers are executable on the remote side Signed-off-by: Nico Schottelius --- cdist/core/explorer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cdist/core/explorer.py b/cdist/core/explorer.py index da84cfaa..86ce52ac 100644 --- a/cdist/core/explorer.py +++ b/cdist/core/explorer.py @@ -98,6 +98,7 @@ class Explorer(object): """Transfer the global explorers to the remote side.""" self.remote.mkdir(self.remote.global_explorer_path) self.remote.transfer(self.local.global_explorer_path, self.remote.global_explorer_path) + self.remote.run(["chmod", "0700", "%s/*" % (self.remote.global_explorer_path)]) def run_global_explorer(self, explorer): """Run the given global explorer and return it's output.""" @@ -152,6 +153,7 @@ class Explorer(object): destination = os.path.join(self.remote.type_path, cdist_type.explorer_path) self.remote.mkdir(destination) self.remote.transfer(source, destination) + self.remote.run(["chmod", "0700", "%s" % (destination)]) self._type_explorers_transferred.append(cdist_type.name) def transfer_object_parameters(self, cdist_object):