Skip to content

Commit e71cc6e

Browse files
committed
Generallize example so it can be modified easily
I often modify this example to try something out and just dumping the entire resource would be convenient. Change-Id: I394323a8a18ae58dbb96bfeeaf7ee8eb6cd9da02
1 parent c7440a0 commit e71cc6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def make_connection(opts):
4747
def run_connection(opts):
4848
conn = make_connection(opts)
4949
print("Connection: %s" % conn)
50-
for flavor in conn.compute.flavors():
51-
print(flavor.id + " " + flavor.name)
50+
for resource in conn.compute.flavors():
51+
print(resource)
5252
return
5353

5454

0 commit comments

Comments
 (0)