dynatrace-oss / api-client-python

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

Entity stub fix #48

Closed radu-stefan-dt closed 3 years ago

radu-stefan-dt commented 3 years ago

"name" property of the EntityStub is optional in some implementations. Requiring a hard presence for this value results in a key error if the implementation does not make use of it. This is the case especially with Events V2

This quick fix just replaces raw_element["name"] with raw_element.get("name")