Skip to content

Commit c02da23

Browse files
authored
Cast api_key as string in datadog.initialize (#54)
1 parent f70c645 commit c02da23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datadog_callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def v2_playbook_on_play_start(self, play):
277277

278278
# Set up API client and send a start event
279279
if not self.disabled:
280-
datadog.initialize(api_key=api_key, api_host=dd_url)
280+
datadog.initialize(api_key=str(api_key), api_host=dd_url)
281281

282282
self.send_playbook_event(
283283
'Ansible play "{0}" started in playbook "{1}" by "{2}" against "{3}"'.format(

0 commit comments

Comments
 (0)