vmware / vsphere-automation-sdk-python

Python samples, language bindings, and API reference documentation for vSphere, VMC, and NSX-T using the VMware REST API
MIT License
745 stars 313 forks source link

Repo documentation errors #368

Closed MsJamie closed 1 year ago

MsJamie commented 1 year ago

Describe the bug

In the example code https://github.com/vmware/vsphere-automation-sdk-python/tree/v8.0.0.1#connect-to-a-vcenter-server

This has

from vmware.vapi.vsphere.client import create_vsphere_client

However it should be from vmware.vapi.vsphere.client import create_vsphere_client as vsphere_client

Otherwise you get the message NameError: name 'vsphere_client' is not defined

Reproduction steps

  1. Run the example code at https://github.com/vmware/vsphere-automation-sdk-python/tree/v8.0.0.1#connect-to-a-vcenter-server with a valid vcenter IP and credentials
  2. ...

Expected behavior

You should see a python list output containing the Summary of the registered VMs on the cluster

Additional context

A different issue but minor at the Photon OS downloads are at a different location but the section that mentions

• Copy the Photon OS ISO image downloaded from VMware's bintray server to the datastore

Clicking on the the VMware bintray server URL just provides a 404. That server appears to no longer function. Linking to the new downloads page https://github.com/vmware/photon/wiki/Downloading-Photon-OS seems like a good option instead.

shwetapurohit commented 1 year ago

@MsJamie

I'm not able to reproduce this issue. Please let me know how did you execute ?

shwetapurohit commented 1 year ago

There is no update from the user, therefore, closing the bug for now. Please feel free to reopen if the issue persists