Skip to content

Commit 8ac15e3

Browse files
committed
Set default for disabled and update error message
1 parent 9278d26 commit 8ac15e3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
CHANGELOG
22
=========
33

4+
# 2.1.0 / 2017-12-26
5+
- [FEATURE] Disable callback if required python packages aren't installed. See [#28][] (thanks to @dobber)
6+
47
# 2.0.0 / 2017-12-12
58
- [FEATURE] Add support for getting api_key from hostvars and thus from vault. See [#25][]
69
- [BREAKING CHANGE] Drop support for ansible <2.0

datadog_callback.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ class CallbackModule(CallbackBase):
1818
def __init__(self):
1919
if not HAS_MODULES:
2020
self.disabled = True
21-
print 'Datadog callback disabled.\nMake sure you call all required libraries.'
21+
print 'Datadog callback disabled.\nMake sure you call all required libraries: "datadog" and "yaml".'
22+
else:
23+
self.disabled = False
2224

2325
self._playbook_name = None
2426
self._start_time = time.time()

0 commit comments

Comments
 (0)