summaryrefslogtreecommitdiffstats
path: root/loginfo-consumer
diff options
context:
space:
mode:
Diffstat (limited to 'loginfo-consumer')
-rwxr-xr-xloginfo-consumer7
1 files changed, 4 insertions, 3 deletions
diff --git a/loginfo-consumer b/loginfo-consumer
index 332d7e8..edab648 100755
--- a/loginfo-consumer
+++ b/loginfo-consumer
@@ -20,6 +20,7 @@
import os
import re
import smtplib
+import socket
from qpid.util import connect
from qpid.connection import Connection
@@ -69,8 +70,8 @@ def append_package_owner_email(directory, recipients):
host = '127.0.0.1'
port = 5672
-socket = connect(host, port)
-connection = Connection (sock=socket)
+sock = connect(host, port)
+connection = Connection(sock = sock)
connection.start()
session = connection.session(str(uuid4()))
@@ -120,7 +121,7 @@ while True:
email_recipients = []
for notification_element in root_element.xpath('/loginfo/notifications/notification'):
- notification = email_element.text
+ notification = notification_element.text
if notification == u'%%OWNER%%':
append_package_owner_email(directory, email_recipients)
else: