forked from ungleich-public/cdist
ensure global and type explorers are executable on the remote side
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
19426574f7
commit
18dd0ebd33
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue