Skip to content

Commit b2793b6

Browse files
committed
Fix #2045 Delete the duplicate line of configuration.host
1 parent 2f546b9 commit b2793b6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

kubernetes/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ configuration.api_key['authorization'] = 'YOUR_API_KEY'
6060
# Defining host is optional and default to http://localhost
6161
configuration.host = "http://localhost"
6262

63-
# Defining host is optional and default to http://localhost
64-
configuration.host = "http://localhost"
6563
# Enter a context with an instance of the API kubernetes.client
6664
with kubernetes.client.ApiClient(configuration) as api_client:
6765
# Create an instance of the API class

kubernetes/base/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ def load_config(**kwargs):
4646
"default location ({0}) does not exist. "
4747
"Using inCluster Config. "
4848
"This might not work.".format(KUBE_CONFIG_DEFAULT_LOCATION))
49-
load_incluster_config(**kwargs)
49+
load_incluster_config(**kwargs)

0 commit comments

Comments
 (0)