vmware / pyvmomi-community-samples

A place for community contributed samples for the pyVmomi library.
Apache License 2.0
1.01k stars 922 forks source link

datacenter not found #703

Closed dor105 closed 2 years ago

dor105 commented 2 years ago

Describe the bug

HEY THERE!

i have some issue with script that create a new vm
im got an error message "Datacenter not found!"
maybe i not run it correctly but i do all steps before to connect and get details about my Vcenter. Ex script's : getallvms.py
and other which actually work great for me!

Just indicates that im put ip as argument for --datacenter-name

Reproduction steps

1.what im run
python create_vm.py -s 'blabla' -u 'blabla' -p 'blabla -nossl -v tst --datacenter-name XX.XXX.XXX.XXX --datastore-name 'blabla' --esx-ip XX.XXX.XXX.XXX

Expected behavior

what i got

Datacenter XX.XXX.XXX.XXX not found!

Additional context

No response