]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blame - python/list_servers.py
Move scripts to separate chunks
[perso/Immae/Projets/Puppet.git] / python / list_servers.py
CommitLineData
85abd2fd
IB
1try:
2 from ovh import ovh
3except ImportError:
4 # In case it's installed globally
5 import ovh
6
7client = ovh.Client()
8
9vps_list = client.get('/vps/')
10
11for vps in vps_list:
12 print(vps)