diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-05-13 16:41:32 +0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-04-01 20:46:40 +0200 |
commit | 1e6672bfda9131eedb6adf158cddd19091e1d8c7 (patch) | |
tree | 97b3056bc0474f100e8f45d56dbc4a7bfc65666b /gbp/notifications.py | |
parent | 53fbee6108018ba49b50795d539dfdbe19d04298 (diff) |
notifications: make notify() more generic
In order to be able to re-use it in gbp-buildpackage-rpm.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/notifications.py')
-rw-r--r-- | gbp/notifications.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gbp/notifications.py b/gbp/notifications.py index 9d9071a9..d628b269 100644 --- a/gbp/notifications.py +++ b/gbp/notifications.py @@ -53,7 +53,7 @@ def send_notification(summary, msg): return True -def notify(cp, success, notify_opt): +def notify(summary, message, notify_opt): """ Send a notifications @return: False on error @@ -66,6 +66,5 @@ def notify(cp, success, notify_opt): if not enable: return [True, False][notify_opt.is_on()] - summary, msg = build_msg(cp, success) - return notify_opt.do(send_notification, summary, msg) + return notify_opt.do(send_notification, summary, message) |