Update elasticRecheck imports in bot.py

This commit updates the elasticRecheck imports in bot.py for the
new file layout.

Change-Id: I1875e2026371731be5d31562e0fd224c3f1107e7
This commit is contained in:
Matthew Treinish
2013-09-29 22:20:35 -04:00
parent c76fd084a4
commit 7c4930d3ca

View File

@@ -132,10 +132,9 @@ class RecheckWatch(threading.Thread):
def run(self):
# Import here because it needs to happen after daemonization
from elasticRecheck import Classifier
from elasticRecheck import Stream
classifier = Classifier(self.queries)
stream = Stream(self.username, self.host, self.key)
import elastic_recheck.elasticRecheck as er
classifier = er.Classifier(self.queries)
stream = er.Stream(self.username, self.host, self.key)
while True:
event = stream.get_failed_tempest()
change = event['change']['number']