dynatrace-oss / api-client-python

Dynatrace API Python client
Apache License 2.0
60 stars 22 forks source link

fix management zone bug, update test and mock data #47

Closed pterygota closed 3 years ago

pterygota commented 3 years ago

I ran into a KeyError at dynatrace/dynatrace_object.py:32 calling something like Dynatrace.entities.get("HOST-82F576674F19AC16",...) when that entity has management zone data. Specifying the parameter raw_element=m at dynatrace/environment_v2/monitored_entities.py fixes this. Updated a test and mock data to demonstrate the bug and the fix.

dynatrace-cla-bot commented 3 years ago

CLA assistant check
All committers have signed the CLA.

dlopes7 commented 3 years ago

Thanks, nice catch