diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-16 09:39:36 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-16 09:39:36 +0000 |
commit | 62e37eb76bf02a3e3e9bddb5ea1fdb3f136ed742 (patch) | |
tree | b9e6542e8f9b2075eac5fb94e63c850aee5bf65c /copr_messaging.patch | |
parent | f9807a8e6cd2e2bdeabdfa781335f3b1c6aa705a (diff) |
automatic import of copr-backend
Diffstat (limited to 'copr_messaging.patch')
-rw-r--r-- | copr_messaging.patch | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/copr_messaging.patch b/copr_messaging.patch deleted file mode 100644 index 652ac52..0000000 --- a/copr_messaging.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff --git a/backend/copr_backend/msgbus.py b/backend/copr_backend/msgbus.py -index 0c224ef1..d5352041 100644 ---- a/backend/copr_backend/msgbus.py -+++ b/backend/copr_backend/msgbus.py -@@ -7,7 +7,13 @@ import logging - import copy - import json - --from copr_messaging import schema -+try: -+ from copr_messaging import schema -+except ImportError: -+ # fedmsg is optional -+ copr_messaging_enabled = False -+else: -+ copr_messaging_enabled = True - - from .constants import BuildStatus - -@@ -33,6 +39,8 @@ def message_from_worker_job(style, topic, job, who, ip, pid): - once we can exepect that people are using copr-messaging module (and thus - we can change message format without affecting the API). - """ -+ if not copr_messaging_enabled: -+ return None - if style == 'v1': - content = { - 'user': job.submitter, |