diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-02-24 10:58:40 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-02-24 11:01:23 +0100 |
commit | fb7e45079470427a794f33e550db9515a640e277 (patch) | |
tree | df6549666dadd5a9d86083b1192653729feea5eb | |
parent | dc586553c287c9ad09690557699e6f0340b4e706 (diff) |
Ease copying/pasting the private keys from logs
Change-Id: I8f1ccdb709dbb3e7a22a404c036714dd848dd87d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit f6b2577f4e052f493f6359265fc473fe98830b62)
-rw-r--r-- | functest/core/singlevm.py | 2 | ||||
-rw-r--r-- | functest/opnfv_tests/vnf/ims/heat_ims.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/functest/core/singlevm.py b/functest/core/singlevm.py index ec7f967ec..16c066ef6 100644 --- a/functest/core/singlevm.py +++ b/functest/core/singlevm.py @@ -353,7 +353,7 @@ class SingleVm1(VmReady1): self.keypair = self.cloud.create_keypair( '{}-kp_{}'.format(self.case_name, self.guid)) self.__logger.debug("keypair: %s", self.keypair) - self.__logger.debug("private_key: %s", self.keypair.private_key) + self.__logger.debug("private_key:\n%s", self.keypair.private_key) with open(self.key_filename, 'w') as private_key_file: private_key_file.write(self.keypair.private_key) self.sec = self.cloud.create_security_group( diff --git a/functest/opnfv_tests/vnf/ims/heat_ims.py b/functest/opnfv_tests/vnf/ims/heat_ims.py index 7bd4f207e..9c2fded78 100644 --- a/functest/opnfv_tests/vnf/ims/heat_ims.py +++ b/functest/opnfv_tests/vnf/ims/heat_ims.py @@ -101,7 +101,7 @@ class HeatIms(singlevm.VmReady2): domain=self.project.domain.id) self.keypair = self.cloud.create_keypair( '{}-kp_{}'.format(self.case_name, self.guid)) - self.__logger.info("keypair: %s", self.keypair.private_key) + self.__logger.info("keypair:\n%s", self.keypair.private_key) if self.deploy_vnf() and self.test_vnf(): self.result = 100 |