Fixed remote action path in shell handler
This commit is contained in:
parent
07c10e6a22
commit
04dc4faae3
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user