Normalize usage of temp and tmp on tmp (#36221)

* Normalize usage of temp and tmp on tmp
* Rename system_tmps system_tmpdirs
* Add ANSIBLE_REMOTE_TMP spelling of environment variables
This commit is contained in:
Toshio Kuratomi
2018-02-15 09:01:02 -08:00
committed by GitHub
parent 2678508d42
commit 06f73ad578
22 changed files with 99 additions and 92 deletions

View File

@@ -235,7 +235,7 @@ class TestActionBase(unittest.TestCase):
ret = None
if opt == 'admin_users':
ret = ['root', 'toor', 'Administrator']
elif opt == 'remote_temp':
elif opt == 'remote_tmp':
ret = '~/.ansible/tmp'
return ret
@@ -419,7 +419,7 @@ class TestActionBase(unittest.TestCase):
mock_connection.socket_path = None
mock_connection._shell.get_remote_filename.return_value = 'copy.py'
mock_connection._shell.join_path.side_effect = os.path.join
mock_connection._shell.tempdir = '/var/tmp/mytempdir'
mock_connection._shell.tmpdir = '/var/tmp/mytempdir'
# we're using a real play context here
play_context = PlayContext()