Skip to content

Commit 02ccb41

Browse files
committed
Fix documentation
1 parent 62d67cc commit 02ccb41

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
Mattias de Hollander <[email protected]>
77
Matthias Schmitz <[email protected]>
88
Michael Schmidt <[email protected]>
9+
Sysradium <[email protected]>

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ Examples
2424
Show all running virtual machines::
2525

2626
client = oca.Client('user:password', 'http://12.12.12.12:2633/RPC2')
27-
client.version()
28-
vm_pool = oca.VirtualMachinePool(c)
27+
vm_pool = oca.VirtualMachinePool(client)
2928
vm_pool.info()
29+
3030
for vm in vm_pool:
31-
print "%s (memory: %s MB)" % ( vm.name, vm.template.memory)
32-
31+
ip_list = ', '.join(v.ip for v in vm.template.nics)
32+
print("{} {} {} (memory: {} MB)".format(vm.name, ip_list, vm.str_state, vm.template.memory))
3333

3434
License
3535
-------

0 commit comments

Comments
 (0)