diff options
Diffstat (limited to 'src/onaptests/steps/cloud/check_status.py')
-rw-r--r-- | src/onaptests/steps/cloud/check_status.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/onaptests/steps/cloud/check_status.py b/src/onaptests/steps/cloud/check_status.py index a72c992..80205b5 100644 --- a/src/onaptests/steps/cloud/check_status.py +++ b/src/onaptests/steps/cloud/check_status.py @@ -120,10 +120,10 @@ class CheckNamespaceStatusStep(BaseStep): else: self.res_dir = f"{testcase.TestCase.dir_results}/kubernetes-status" - if settings.K8S_CONFIG: - config.load_kube_config(config_file=settings.K8S_CONFIG) + if settings.IN_CLUSTER: + config.load_incluster_config() else: - config.load_kube_config() + config.load_kube_config(config_file=settings.K8S_CONFIG) self.core = client.CoreV1Api() self.batch = client.BatchV1Api() |