Skip to content

Commit

Permalink
[CE-426] Chain in k8s host thrown Exception
Browse files Browse the repository at this point in the history
1. rename "_get_from_params" function to "_get_config_from_params"

Change-Id: I93c878a40937323880a3b55686c87981e193ad1c
Signed-off-by: luke <jiahaochen1993@gmail.com>
  • Loading branch information
jiahaoc1993 committed Aug 10, 2018
1 parent 77a79c9 commit a318849
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/agent/k8s/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ def get_services_urls(self, cid):
cluster = ClusterModel.objects.get(id=cid)

cluster_name = cluster.name
kube_config = KubernetesOperation()._get_from_params(cluster
.host
.k8s_param)
kube_config = \
KubernetesOperation()._get_config_from_params(cluster.host
.k8s_param)

operation = K8sClusterOperation(kube_config)
services_urls = operation.get_services_urls(cluster_name)
Expand Down

0 comments on commit a318849

Please sign in to comment.