Cumulocity-IoT / cumulocity-python-api

Python client for the Cumulocity REST API. Created by Global Competency Center IoT
Apache License 2.0
18 stars 14 forks source link

Rest Get for tenant options does not work as expected #63

Open ck-c8y opened 6 days ago

ck-c8y commented 6 days ago
# does  not work
# tenant_options = self.c8yapp.get_tenant_instance(headers=request_headers).tenant_options.get_all(category=self.ANALYTICS_MANAGEMENT_REPOSITORIES)
 # works     
  response = self.c8yapp.get_tenant_instance(headers=request_headers).get(
                    resource=f"{self.PATH_TENANT_OPTIONS}/{self.ANALYTICS_MANAGEMENT_REPOSITORIES}")
  tenant_options = response
chsou commented 5 days ago

This is a bug.

chsou commented 5 days ago

Fixed in version 3.0.0