File: fix-stomp-usage.patch

package info (click to toggle)
elastalert 0.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,368 kB
  • sloc: python: 12,267; makefile: 101
file content (26 lines) | stat: -rw-r--r-- 925 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Sophie Brun <sophie@freexian.com>
Date: Thu, 21 Jan 2021 15:03:52 +0100
Subject: Fix stomp usage for latest python3-stomp

Last-Update: 2021-01-21
Upstream-Forwarded: not-needed
Author: nsano-rururu <nsano@ae.em-net.ne.jp>
From: https://github.com/Yelp/elastalert/pull/3024

The latest version of Stomp does not support a top level .start() method call.
---
 elastalert/alerts.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/elastalert/alerts.py b/elastalert/alerts.py
index a453081..508bc80 100644
--- a/elastalert/alerts.py
+++ b/elastalert/alerts.py
@@ -371,7 +371,6 @@ class StompAlerter(Alerter):
 
         conn = stomp.Connection([(self.stomp_hostname, self.stomp_hostport)], use_ssl=self.stomp_ssl)
 
-        conn.start()
         conn.connect(self.stomp_login, self.stomp_password)
         # Ensures that the CONNECTED frame is received otherwise, the disconnect call will fail.
         time.sleep(1)