Skip to content

Commit

Permalink
elastalert stomp patch
Browse files Browse the repository at this point in the history
  • Loading branch information
nsano-rururu committed Nov 8, 2020
1 parent 3dfe0e9 commit d2e327b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ COPY elastalert_modules/ /opt/elastalert/elastalert_modules
COPY patches/loaders.py /opt/elastalert/elastalert/loaders.py
# Fix until https://github.com/Yelp/elastalert/pull/2640 is merged
COPY patches/zabbix.py /opt/elastalert/elastalert/zabbix.py
# Fix until https://github.com/Yelp/elastalert/pull/2793 is merged
# Fix until https://github.com/Yelp/elastalert/pull/2793 and https://github.com/Yelp/elastalert/pull/3024 is merged
COPY patches/alerts.py /opt/elastalert/elastalert/alerts.py

# Add default rules directory
Expand Down
1 change: 0 additions & 1 deletion patches/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ def alert(self, matches):

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)
Expand Down

0 comments on commit d2e327b

Please sign in to comment.