Skip to content

Commit

Permalink
fix(nvml): decode no longer needed (#1774)
Browse files Browse the repository at this point in the history
The object seems to come in as a string.  Resolves #1773
  • Loading branch information
Jack Lindamood authored Apr 18, 2023
1 parent 17fd4b8 commit 9c0f3b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvml/datadog_checks/nvml/nvml.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def discover_instances(self, interval):
def get_tags(self, device_id):
with self.lock:
# Note: device ID comes in as bytes, but we get strings from grpc
return self.known_tags.get(device_id, self.known_tags.get(device_id.decode("utf-8"), []))
return self.known_tags.get(device_id, self.known_tags.get(device_id, []))

def get_pod_tags(self, namespace, pod_name):
try:
Expand Down

0 comments on commit 9c0f3b8

Please sign in to comment.