From 1825aa713952288e4204ea3b38f0d3c0635a6918 Mon Sep 17 00:00:00 2001 From: Linda Wang Date: Mon, 29 Jan 2018 07:37:37 +0000 Subject: Rename a common credential file for OS and K8S Change-Id: Ib8d24be4b29ab1de00d5dd5e3442146b2437cb94 Signed-off-by: Linda Wang --- functest/api/resources/v1/creds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functest/api') diff --git a/functest/api/resources/v1/creds.py b/functest/api/resources/v1/creds.py index f445017d..c4797fc2 100644 --- a/functest/api/resources/v1/creds.py +++ b/functest/api/resources/v1/creds.py @@ -39,7 +39,7 @@ class V1Creds(ApiResource): endpoint='{0}/credentials'.format(ENDPOINT_CREDS)) def get(self): # pylint: disable=no-self-use """ Get credentials """ - os_utils.source_credentials(CONST.__getattribute__('openstack_creds')) + os_utils.source_credentials(CONST.__getattribute__('env_file')) credentials_show = OpenStack.show_credentials() return jsonify(credentials_show) @@ -65,7 +65,7 @@ class V1Creds(ApiResource): lines = ['export {}={}\n'.format(k, v) for k, v in openrc_vars.items()] - rc_file = CONST.__getattribute__('openstack_creds') + rc_file = CONST.__getattribute__('env_file') with open(rc_file, 'w') as creds_file: creds_file.writelines(lines) -- cgit 1.2.3-korg