ARIA-202 Execution plugin assumes \/tmp for temp directory on the local\/remote machine
Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/c22166cf Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/c22166cf Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/c22166cf Branch: refs/heads/rest_client_work Commit: c22166cf8f00df756e16b7cce316d8ae5dead6a1 Parents: b594115 Author: max-orlov <[email protected]> Authored: Tue Jul 4 16:13:41 2017 +0300 Committer: Ran Ziv <[email protected]> Committed: Mon Jul 10 17:00:27 2017 +0300 ---------------------------------------------------------------------- aria/orchestrator/execution_plugin/constants.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/c22166cf/aria/orchestrator/execution_plugin/constants.py ---------------------------------------------------------------------- diff --git a/aria/orchestrator/execution_plugin/constants.py b/aria/orchestrator/execution_plugin/constants.py index 8082e95..1953912 100644 --- a/aria/orchestrator/execution_plugin/constants.py +++ b/aria/orchestrator/execution_plugin/constants.py @@ -16,6 +16,8 @@ """ Execution plugin constants. """ +import os +import tempfile from . import exceptions @@ -28,7 +30,7 @@ DEFAULT_POWERSHELL_EXECUTABLE = 'powershell' ILLEGAL_CTX_OPERATION_MESSAGE = 'ctx may only abort or retry once' # related to ssh -DEFAULT_BASE_DIR = '/tmp/aria-ctx' +DEFAULT_BASE_DIR = os.path.join(tempfile.gettempdir(), 'aria-ctx') FABRIC_ENV_DEFAULTS = { 'connection_attempts': 5, 'timeout': 10,
