Skip to content

Commit 8845bee

Browse files
authored
Merge pull request #846 from hajowieland/master
Enhancements for example3.py and example4.py
2 parents 4a204fa + c3f36bd commit 8845bee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/example3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def main():
2222
config.load_kube_config()
2323

2424
print("Supported APIs (* is preferred version):")
25-
print("%-20s %s" %
25+
print("%-40s %s" %
2626
("core", ",".join(client.CoreApi().get_api_versions().versions)))
2727
for api in client.ApisApi().get_api_versions().groups:
2828
versions = []

examples/example4.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def main():
3232
# utility
3333
config.load_kube_config(context=option)
3434

35-
print("Active host is %s" % configuration.host)
35+
print("Active host is %s" % configuration.Configuration().host)
3636

3737
v1 = client.CoreV1Api()
3838
print("Listing pods with their IPs:")

0 commit comments

Comments
 (0)