From 3a419ed58b58ae80bca2b731d582a85744e1e656 Mon Sep 17 00:00:00 2001
From: Steven Armstrong <steven@icarus.ethz.ch>
Date: Fri, 30 Nov 2012 10:29:20 +0100
Subject: [PATCH] make type explorers executable after transfering them

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
---
 cdist/core/explorer.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cdist/core/explorer.py b/cdist/core/explorer.py
index 86ce52ac..d926552a 100644
--- a/cdist/core/explorer.py
+++ b/cdist/core/explorer.py
@@ -153,7 +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.remote.run(["chmod", "0700", "%s/*" % (destination)])
                 self._type_explorers_transferred.append(cdist_type.name)
 
     def transfer_object_parameters(self, cdist_object):