Skip to content

Commit

Permalink
[#3] k8s: fixed opdm api by latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
m-karo committed Sep 5, 2024
1 parent 376bc43 commit c81174f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions emf/common/integrations/opdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,12 @@ def query(self, object_type, meta=None):

# query_id, raw_response = self.query_object(object_type, meta)
response = self.query_object(object_type, meta)
logger.info(f"{type(response)}")
logger.info(f"{response}")
query_id, raw_response = response[0], response[1]
response = raw_response['sm:QueryResult']['sm:part'][1:]
response = response['sm:QueryResult']['sm:part'][1:]

if type(response) == str:
response = []

logger.info(f"Number of responses: {len(response)} for query {query_id}")
logger.info(f"Number of responses: {len(response)} for query")

return response

Expand Down

0 comments on commit c81174f

Please sign in to comment.