From a30e9f9f7f2c47c4cdcfe723332c2a4f947107e1 Mon Sep 17 00:00:00 2001 From: Mohan Boddu Date: May 21 2020 14:01:38 +0000 Subject: [PATCH 1/2] Fixing the class method get_odcs_token Signed-off-by: Mohan Boddu --- diff --git a/fedora-minimal-compose.py b/fedora-minimal-compose.py index 360020b..c675ea1 100755 --- a/fedora-minimal-compose.py +++ b/fedora-minimal-compose.py @@ -59,7 +59,7 @@ class Consumer(object): logger.error(f'Tagging {new_build} from {self.fmc_tag} failed, exception: {e}') self.kojisession.multiCall() - def get_odcs_token(odcs_file): + def get_odcs_token(self, odcs_file): if os.path.exists(odcs_file): f = open(odcs_file, "r") token = f.readline() From 5703ffed3f3008a96aaa07d6c4ccd96a42f72015 Mon Sep 17 00:00:00 2001 From: Mohan Boddu Date: May 21 2020 14:06:30 +0000 Subject: [PATCH 2/2] The fedora messaging config is available at /etc/fedora-messaging See the fmc role in fedora infra ansible Signed-off-by: Mohan Boddu --- diff --git a/fedora-minimal-compose.py b/fedora-minimal-compose.py index c675ea1..07b8da0 100755 --- a/fedora-minimal-compose.py +++ b/fedora-minimal-compose.py @@ -10,7 +10,7 @@ import os # Set local logging logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) -fedora_messaging.config.conf.load_config("fedora-minimal-compose.toml") +fedora_messaging.config.conf.load_config("/etc/fedora-messaging/fedora-minimal-compose.toml") class Consumer(object):