Sign in
apache
/
libcloud
/
b8c8f00a47a9ca2498c0f6da62075c9e46e8eb95
/
.
/
docs
/
examples
/
compute
/
vsphere
/
connect_host.py
blob: da587b71872d48bf43e9c0a9026bdd3f94c7b228 [
file
] [
log
] [
blame
]
from
libcloud
.
compute
.
types
import
Provider
from
libcloud
.
compute
.
providers
import
get_driver
cls
=
get_driver
(
Provider
.
VSPHERE
)
driver
=
cls
(
host
=
'192.168.1.100'
,
username
=
'admin'
,
password
=
'admin'
)
print
(
driver
.
list_nodes
())
# ...