CiscoUcs / ucsmsdk

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

ucs_kvm_launch() failure, no DN #174

Closed brucelok closed 10 months ago

brucelok commented 6 years ago

there is no method to get DN in advance ucsmsdk-0.9.4

>>> server = handle.query_dn('org-root/ls-poc-002')
>>> print server.dn, server.pn_dn
org-root/ls-poc-002  sys/rack-unit-17
>>>
>>>
>>> ucs_kvm_launch(handle, service_profile='poc-002')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/ucsmsdk/utils/ucskvmlaunch.py", line 140, in ucs_kvm_launch
    dn = service_profile.dn
AttributeError: 'str' object has no attribute 'dn'
>>>
>>>
>>> ucs_kvm_launch(handle, rack_unit=17)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/ucsmsdk/utils/ucskvmlaunch.py", line 105, in ucs_kvm_launch
    pn_dn = rack_unit.dn
AttributeError: 'int' object has no attribute 'dn'
>>>
github-actions[bot] commented 11 months ago

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] commented 10 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.