ariatosca-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject [4/8] incubator-ariatosca git commit: ARIA-202 Execution plugin assumes \/tmp for temp directory on the local\/remote machine
Date Mon, 10 Jul 2017 14:03:51 GMT
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/0.1.1-rc
Commit: c22166cf8f00df756e16b7cce316d8ae5dead6a1
Parents: b594115
Author: max-orlov <maxim@gigaspaces.com>
Authored: Tue Jul 4 16:13:41 2017 +0300
Committer: Ran Ziv <ran@gigaspaces.com>
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,


Mime
View raw message