Skip to content

Commit 812125f

Browse files
authored
Merge pull request #53 from kubernetes-incubator/fix
Fix examples syntax error
2 parents 738dcde + b088fe0 commit 812125f

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import os
3131
from kubernetes import client, config
3232

3333
# Configs can be set in Configuration class directly or using helper utility
34-
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config')
34+
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config'))
3535

3636
v1=client.CoreV1Api()
3737
print("Listing pods with their IPs:")
@@ -48,7 +48,7 @@ import os
4848
from kubernetes import client, config, watch
4949

5050
# Configs can be set in Configuration class directly or using helper utility
51-
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config')
51+
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config'))
5252

5353
v1 = client.CoreV1Api()
5454
count = 10

examples/example1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
def main():
2121
# Configs can be set in Configuration class directly or using helper
2222
# utility
23-
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config')
23+
config.load_kube_config(
24+
os.path.join(os.path.expanduser('~'), '.kube', 'config'))
2425

2526
v1 = client.CoreV1Api()
2627
print("Listing pods with their IPs:")

examples/example2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
def main():
2121
# Configs can be set in Configuration class directly or using helper
2222
# utility
23-
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config')
23+
config.load_kube_config(
24+
os.path.join(os.path.expanduser('~'), '.kube', 'config'))
2425

2526
v1 = client.CoreV1Api()
2627
count = 10

examples/example3.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
def main():
2121
# Configs can be set in Configuration class directly or using helper
2222
# utility
23-
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config')
23+
config.load_kube_config(
24+
os.path.join(os.path.expanduser('~'), '.kube', 'config'))
2425

2526
print("Supported APIs (* is preferred version):")
2627
print("%-20s %s" %

0 commit comments

Comments
 (0)