From 4e535772a40be6a2c07977c030f62686cf5895fa Mon Sep 17 00:00:00 2001 From: hajowieland Date: Sat, 1 Jun 2019 13:44:12 +0200 Subject: [PATCH 1/2] Correct alignment --- examples/example3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/example3.py b/examples/example3.py index 25c0d9a807..2ee3685b58 100644 --- a/examples/example3.py +++ b/examples/example3.py @@ -22,7 +22,7 @@ def main(): config.load_kube_config() print("Supported APIs (* is preferred version):") - print("%-20s %s" % + print("%-40s %s" % ("core", ",".join(client.CoreApi().get_api_versions().versions))) for api in client.ApisApi().get_api_versions().groups: versions = [] From c3f36bd54a554153aac1c6cea73f8c955d36cdfc Mon Sep 17 00:00:00 2001 From: hajowieland Date: Sat, 1 Jun 2019 14:05:01 +0200 Subject: [PATCH 2/2] Configuration class to show active host --- examples/example4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/example4.py b/examples/example4.py index 5c05495853..334e282c2f 100644 --- a/examples/example4.py +++ b/examples/example4.py @@ -32,7 +32,7 @@ def main(): # utility config.load_kube_config(context=option) - print("Active host is %s" % configuration.host) + print("Active host is %s" % configuration.Configuration().host) v1 = client.CoreV1Api() print("Listing pods with their IPs:")