Skip to content

Commit

Permalink
corrected bug in get_cep_id
Browse files Browse the repository at this point in the history
  • Loading branch information
ck-c8y committed Feb 23, 2024
1 parent ade7ce9 commit f0ac5ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analytics-service/c8y_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ def get_cep_id(self, request_headers):
app_id = app.id
self._logger.info(f"Found app id: {app_id}")
# break
query = f"$filter=applicationId eq '{app_id}' and name eq '{self.APAMA_CTRL_APPLICATION_NAME}'"
query = f"applicationId eq '{app_id}' and name eq '{self.APAMA_CTRL_APPLICATION_NAME}'"

self._logger.info(f"Build filter: {query}")

managed_objects_app = self.c8yapp.get_tenant_instance(
headers=request_headers
).inventory.select(query)
).inventory.select(query=query)
managed_object_id = None
for managed_object in managed_objects_app:
self._logger.info(
Expand Down

0 comments on commit f0ac5ac

Please sign in to comment.