diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-02-19 20:49:00 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-02-19 20:49:25 +0100 |
commit | edac6a883e0b80724140305258649b4891a2d14c (patch) | |
tree | 53ffb0ed618b5eca4a18c9b4ff892c350450e6f3 /functest/opnfv_tests/openstack/vping | |
parent | c49ada60d6b5390ea7e28d4e681195ad759b5214 (diff) |
Remove last CONST.__getattribute__()
Change-Id: I82f6aa1e723c88eebd4c7410da4b9741a482e9bc
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/opnfv_tests/openstack/vping')
-rw-r--r-- | functest/opnfv_tests/openstack/vping/vping_ssh.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/functest/opnfv_tests/openstack/vping/vping_ssh.py b/functest/opnfv_tests/openstack/vping/vping_ssh.py index 57e177e5..0964d846 100644 --- a/functest/opnfv_tests/openstack/vping/vping_ssh.py +++ b/functest/opnfv_tests/openstack/vping/vping_ssh.py @@ -42,11 +42,11 @@ class VPingSSH(vping_base.VPingBase): kwargs["case_name"] = "vping_ssh" super(VPingSSH, self).__init__(**kwargs) - self.kp_name = CONST.__getattribute__('vping_keypair_name') + self.guid - self.kp_priv_file = CONST.__getattribute__('vping_keypair_priv_file') - self.kp_pub_file = CONST.__getattribute__('vping_keypair_pub_file') - self.sg_name = CONST.__getattribute__('vping_sg_name') + self.guid - self.sg_desc = CONST.__getattribute__('vping_sg_desc') + self.kp_name = getattr(CONST, 'vping_keypair_name') + self.guid + self.kp_priv_file = getattr(CONST, 'vping_keypair_priv_file') + self.kp_pub_file = getattr(CONST, 'vping_keypair_pub_file') + self.sg_name = getattr(CONST, 'vping_sg_name') + self.guid + self.sg_desc = getattr(CONST, 'vping_sg_desc') @energy.enable_recording def run(self, **kwargs): |