Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Hotfix: fix keyerror in datadog emitter
Browse files Browse the repository at this point in the history
  • Loading branch information
myoung34 committed Aug 25, 2020
1 parent f1a952d commit b6cf297
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_datadog.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_datadog(
'port': '8130',
}
tilt_data = {
'temperature': '55',
'temp': '55',
'gravity': '1054',
'color': 'black',
'mac': '00:0a:95:9d:68:16',
Expand Down
2 changes: 1 addition & 1 deletion tilty/emitters/datadog.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def emit(self, tilt_data: dict) -> None: # pylint:disable=no-self-use
]
statsd.gauge(
'tilty.temperature',
tilt_data['temperature'],
tilt_data['temp'],
tags=tags,
)
LOGGER.info('[datadog] posting gravity data')
Expand Down

0 comments on commit b6cf297

Please sign in to comment.