Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Export DPM configuration" expects inventory-error-details to always be present #1760

Closed
EdGue42 opened this issue Feb 21, 2025 · 0 comments · Fixed by #1761 or #1771
Closed

"Export DPM configuration" expects inventory-error-details to always be present #1760

EdGue42 opened this issue Feb 21, 2025 · 0 comments · Fixed by #1761 or #1771

Comments

@EdGue42
Copy link
Contributor

EdGue42 commented Feb 21, 2025

The "Export DPM configuration" operation uses the "GET inventory" operation, and assumes that any ""inventory-error" objects always contain the "inventory-error-details" field. But according to the WSAPI spec, this field is only present if "inventory-error-code" is 5.

This leads to errors such as:

  File "/Users/guenthne/github/ibm/my-machine/config/dot-virtualenvs/zhmccli/lib/python3.11/site-packages/zhmcclient/_cpc.py", line 3135, in retrieveInventoryData
    f"Details: {dict(item.get('inventory-error-details'))}")
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment