You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ariatosca.apache.org by mx...@apache.org on 2017/10/22 07:51:13 UTC

[03/30] incubator-ariatosca git commit: ARIA-202 Execution plugin assumes \/tmp for temp directory on the local\/remote machine

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/cc1a2302
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/cc1a2302
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/cc1a2302

Branch: refs/heads/new_wagon_setuptools
Commit: cc1a2302b7eae8eda05251442b0e4c8ad60dce2b
Parents: ca808ae
Author: max-orlov <ma...@gigaspaces.com>
Authored: Tue Jul 4 16:13:41 2017 +0300
Committer: max-orlov <ma...@gigaspaces.com>
Committed: Tue Jul 4 16:48:08 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/cc1a2302/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,