ariatosca-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From emblempar...@apache.org
Subject [2/5] incubator-ariatosca git commit: ARIA-202 Execution plugin assumes \/tmp for temp directory on the local\/remote machine
Date Wed, 05 Jul 2017 20:46:44 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/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/ARIA-260-send-interface-inputs
Commit: cc1a2302b7eae8eda05251442b0e4c8ad60dce2b
Parents: ca808ae
Author: max-orlov <maxim@gigaspaces.com>
Authored: Tue Jul 4 16:13:41 2017 +0300
Committer: max-orlov <maxim@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,


Mime
View raw message