SoftwareAG/cumulocity-python-api

Exception when calling DeviceInventory.get_all

BoddyTheBuilder opened this issue · 1 comments

Function DeviceInventory.get_all() delegates its call to its parent, Inventory.get_all(), which in turn calls self.select(). That results in a parameter missmatch as self refers to an instance of DeviceInventory while the function parameters match with Inventory.select()

Replacing line 784 in module/inventory.py with
return [ x for x in self.select( type = type, name = name, page_size = page_size ) ]
resolved the issue for me

Good find!
Fixed for next release.