Use model tmpdor for key storage

Use the model specific tmp dir to store the test ssh private key.
This avoids the key being overwritten in CMR tests.

Depends-On: https://github.com/openstack-charmers/zaza/pull/371
This commit is contained in:
Liam Young
2020-07-07 09:56:25 +00:00
parent 3fa5297a1d
commit a829b372e0
+2 -1
View File
@@ -2202,7 +2202,8 @@ def get_private_key_file(keypair_name):
:returns: Path to file containing key
:rtype: str
"""
return 'tests/id_rsa_{}'.format(keypair_name)
tmp_dir = deployment_env.get_tmpdir()
return '{}/id_rsa_{}'.format(tmp_dir, keypair_name)
def write_private_key(keypair_name, key):