Skip to content

Commit

Permalink
Fix examples syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
mbohlool committed Dec 1, 2016
1 parent 738dcde commit b088fe0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import os
from kubernetes import client, config

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

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

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

v1 = client.CoreV1Api()
count = 10
Expand Down
3 changes: 2 additions & 1 deletion examples/example1.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
def main():
# Configs can be set in Configuration class directly or using helper
# utility
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config')
config.load_kube_config(
os.path.join(os.path.expanduser('~'), '.kube', 'config'))

v1 = client.CoreV1Api()
print("Listing pods with their IPs:")
Expand Down
3 changes: 2 additions & 1 deletion examples/example2.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
def main():
# Configs can be set in Configuration class directly or using helper
# utility
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config')
config.load_kube_config(
os.path.join(os.path.expanduser('~'), '.kube', 'config'))

v1 = client.CoreV1Api()
count = 10
Expand Down
3 changes: 2 additions & 1 deletion examples/example3.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
def main():
# Configs can be set in Configuration class directly or using helper
# utility
config.load_kube_config(os.path.join(os.path.expanduser('~'), '.kube', 'config')
config.load_kube_config(
os.path.join(os.path.expanduser('~'), '.kube', 'config'))

print("Supported APIs (* is preferred version):")
print("%-20s %s" %
Expand Down

0 comments on commit b088fe0

Please sign in to comment.