Browse files

Use the config that doesn't exist

  • Loading branch information...
1 parent c8740a2 commit 9d6a6b59a39ddf73e3d40ff006bbb34ed8cb7d2d Zachary Parmley committed Mar 21, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/code_companion_send_message.py
View
3 python/code_companion_send_message.py
@@ -5,6 +5,7 @@
from twisted.internet import reactor
from twisted.internet.protocol import Protocol
from twisted.internet.protocol import ClientCreator
+from cc_config import home_hostname
class MessageSender(Protocol):
@@ -20,7 +21,7 @@ def connectionLost(self, reason):
def sendMessage(app, message):
""" Setup TCP connection, send message and disconnect """
creator = ClientCreator(reactor, MessageSender)
- d = creator.connectTCP("sfoengwifi53-252.clients.corp.yelpcorp.com", 8080)
+ d = creator.connectTCP(home_hostname, 8080)
d.addCallback(lambda p: p.sendMessage(app, message))
reactor.run()

0 comments on commit 9d6a6b5

Please sign in to comment.