CiscoUcs / ucsmsdk

Python SDK for Cisco UCSM
Other
80 stars 60 forks source link

convert_to_ucs_python method in ucsmsdk is not working #241

Open shashire opened 6 months ago

shashire commented 6 months ago

https://ucsmsdk.readthedocs.io/en/latest/ucsmsdk_ug.html#convert-to-ucs-python

Calling ucs_gui_launch(handle)fails with urllib.error.HTTPError: HTTP Error 404: Not Found because the URL being used in ucs_gui_launch does not exist.

Relevant snippet from ucs_gui_launch.py: 71 javaws_path = ucsgenutils.get_java_installation_path() 72 log.debug("javaws path: <%s>" % javaws_path) 73 if javaws_path is not None: 74 # source = urllib2.urlopen(ucsm_url).read() 75 source = handle.post(uri=ucsm_gui_url) <<<<----fails here 76 jnlp_dir = tempfile.gettempdir()

This is the URL used in line 75: (Pdb) ucsm_gui_url 'https://10.105.212.180:443/ucsm/ucsm.jnlp?ucsmToken=65413820767099957765191'

I tried in chrome manually, the above URL does not exist.