From 04dc4faae3d3bbade8663df64e089c91507d562d Mon Sep 17 00:00:00 2001 From: Jedrzej Nowak Date: Mon, 19 Oct 2015 20:16:39 +0200 Subject: [PATCH] Fixed remote action path in shell handler --- solar/solar/core/handlers/shell.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/solar/solar/core/handlers/shell.py b/solar/solar/core/handlers/shell.py index 69a43a0a..bf0024ff 100644 --- a/solar/solar/core/handlers/shell.py +++ b/solar/solar/core/handlers/shell.py @@ -17,7 +17,7 @@ from solar.core.log import log from solar import errors import os -from solar.core.handlers.base import TempFileHandler +from solar.core.handlers.base import TempFileHandler, SOLAR_TEMP_LOCAL_LOCATION class Shell(TempFileHandler): @@ -26,6 +26,8 @@ class Shell(TempFileHandler): log.debug('action_file: %s', action_file) action_file_name = os.path.join(self.dirs[resource.name], action_file) + action_file_name = action_file_name.replace(SOLAR_TEMP_LOCAL_LOCATION, '/tmp/') + self._copy_templates_and_scripts(resource, action_name) self.transport_sync.copy(resource, self.dst, '/tmp')