Open
Description
When marshmallow 4.0.0 is installed, Aggregate.get_collection(fields="space") throws an exception:
Traceback (most recent call last):
File "/workspaces/test.py", line 17, in <module>
for aggregate in aggregates:
File "/usr/local/lib/python3.9/site-packages/netapp_ontap/resource.py", line 784, in _get_collection
obj = cls.from_dict(record, *args)
File "/usr/local/lib/python3.9/site-packages/netapp_ontap/resource.py", line 593, in from_dict
raise NetAppRestError(cause=exc) from None
netapp_ontap.error.NetAppRestError: Caused by AttributeError("'Number' object has no attribute 'num_type'")
Code to reproduce issue:
#!/usr/bin/env python3
from netapp_ontap import HostConnection
import netapp_ontap.config
import netapp_ontap.resources
hostconnection = HostConnection("<hostname>, "<username>", "<password>", verify=False)
netapp_ontap.config.CONNECTION = hostconnection
aggregates = netapp_ontap.resources.Aggregate.get_collection(fields="space")
for aggregate in aggregates:
print(aggregate)
Metadata
Metadata
Assignees
Labels
No labels