Fixed remote action path in shell handler

This commit is contained in:
Jedrzej Nowak 2015-10-19 20:16:39 +02:00
parent 07c10e6a22
commit 04dc4faae3

View File

@ -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')