aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/vping/vping_base.py
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2018-01-30 19:11:27 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-01-30 19:11:27 +0000
commit8296b68bbb2e6da34676af2c1e81e264c626296c (patch)
tree328f928cedd788ae9ea86b698f1edd9a87586b1e /functest/opnfv_tests/openstack/vping/vping_base.py
parent03c3f4c2bd1635383cb64168b52e4d8540056942 (diff)
parent3b36c06f9223322e23e3885759355593b3c598a3 (diff)
Merge "Remove duplicated code related to snaps creds"
Diffstat (limited to 'functest/opnfv_tests/openstack/vping/vping_base.py')
-rw-r--r--functest/opnfv_tests/openstack/vping/vping_base.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/functest/opnfv_tests/openstack/vping/vping_base.py b/functest/opnfv_tests/openstack/vping/vping_base.py
index b99fdf6b..7170101f 100644
--- a/functest/opnfv_tests/openstack/vping/vping_base.py
+++ b/functest/opnfv_tests/openstack/vping/vping_base.py
@@ -40,16 +40,7 @@ class VPingBase(testcase.TestCase):
def __init__(self, **kwargs):
super(VPingBase, self).__init__(**kwargs)
self.logger = logging.getLogger(__name__)
- if 'os_creds' in kwargs:
- self.os_creds = kwargs['os_creds']
- else:
- creds_override = getattr(
- CONST, 'snaps_os_creds_override') if hasattr(
- CONST, 'snaps_os_creds_override') else None
- self.os_creds = openstack_tests.get_credentials(
- os_env_file=getattr(CONST, 'openstack_creds'),
- overrides=creds_override)
-
+ self.os_creds = kwargs.get('os_creds') or snaps_utils.get_credentials()
self.creators = list()
self.image_creator = None
self.network_creator = None