From cc1a2302b7eae8eda05251442b0e4c8ad60dce2b Mon Sep 17 00:00:00 2001 From: max-orlov Date: Tue, 4 Jul 2017 16:13:41 +0300 Subject: [PATCH] ARIA-202 Execution plugin assumes \/tmp for temp directory on the local\/remote machine --- aria/orchestrator/execution_plugin/constants.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aria/orchestrator/execution_plugin/constants.py b/aria/orchestrator/execution_plugin/constants.py index 8082e95d..19539124 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 @@ 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,