- Notifications
You must be signed in to change notification settings - Fork46
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 Nonenetapp_ontap.error.NetAppRestError: Caused by AttributeError("'Number' object has no attribute 'num_type'")Code to reproduce issue:
#!/usr/bin/env python3fromnetapp_ontapimportHostConnectionimportnetapp_ontap.configimportnetapp_ontap.resourceshostconnection=HostConnection("<hostname>, "<username>", "<password>",verify=False)netapp_ontap.config.CONNECTION=hostconnectionaggregates=netapp_ontap.resources.Aggregate.get_collection(fields="space")foraggregateinaggregates:print(aggregate)
Metadata
Metadata
Assignees
Labels
No labels