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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user