callback: specify which configuration file to use for fedora-messaging
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
a21b274209
commit
14e760a144
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,7 @@ import logging
|
|||
import os
|
||||
import pwd
|
||||
|
||||
import fedora_messaging.config
|
||||
from fedora_messaging.api import Message, publish
|
||||
from fedora_messaging.exceptions import PublishReturned, ConnectionException
|
||||
|
||||
|
@ -52,6 +53,8 @@ class CallbackModule(CallbackBase):
|
|||
CALLBACK_TYPE = "notification"
|
||||
CALLBACK_VERSION = 2.0
|
||||
CALLBACK_NEEDS_WHITELIST = True
|
||||
fedora_messaging.config.conf.load_config(
|
||||
'/etc/fedora-messaging/batcave-messaging.toml')
|
||||
|
||||
playbook_path = None
|
||||
|
||||
|
@ -61,6 +64,7 @@ class CallbackModule(CallbackBase):
|
|||
|
||||
super(CallbackModule, self).__init__()
|
||||
|
||||
|
||||
def set_play_context(self, play_context):
|
||||
self.play_context = play_context
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue